Započeo Reza
•9. Apr. 2010.U vezi komandi...
3,560
pregleda
28
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
144
Postovi:
42
Teme:
Pridružio se:Mar. 2010
9. Apr. 2010.
Evo ovako idem na new i onda imam ovo
nznam kako cu stavit neku komandu idem kopirati iz gf moda i onda mi izadje 17 errora
pls pomozite...
pokosa sam po nekim tutorijalima sto sam nasao odi ali uvik isto..
Hvala.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
nznam kako cu stavit neku komandu idem kopirati iz gf moda i onda mi izadje 17 errora
pls pomozite...
pokosa sam po nekim tutorijalima sto sam nasao odi ali uvik isto..
Hvala.
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
155
Postovi:
21
Teme:
Pridružio se:Jul 2009
9. Apr. 2010.
...:::---REZA---:::... wrote on April 9, 2010, 2:58 pm:
Evo ovako idem na new i onda imam ovo
nznam kako cu stavit neku komandu idem kopirati iz gf moda i onda mi izadje 17 errora
pls pomozite...
pokosa sam po nekim tutorijalima sto sam nasao odi ali uvik isto..
Hvala.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
nznam kako cu stavit neku komandu idem kopirati iz gf moda i onda mi izadje 17 errora
pls pomozite...
pokosa sam po nekim tutorijalima sto sam nasao odi ali uvik isto..
Hvala.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/pozdrav", cmdtext, true, 10) == 0) //ovo di pise "/pozdrav" to je tvoja komanda mozes stavit sta god oces...
{
SendClientMessageToAll(0x0088FFAA, "Pozdravljam vas svih !");// ovo SendClientMessageToAll to je funkcija da posalje poruku koju zelis svim igracima na serveru, ovo "0x0088FFAA" to je boja(u ovom slucaju plava), "pozdravljam vas svih" to je poruka tu isto mozes stavit sta god oces....
return 1;
}
return 0;
}Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
155
Postovi:
21
Teme:
Pridružio se:Jul 2009
9. Apr. 2010.
Eo ti i vise ne postavljaj ovako glupa pitanja...
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
CreatedCars = carid;
CreatedCar ++;
format(string, sizeof(string), " Vehicle %d spawned.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
144
Postovi:
42
Teme:
Pridružio se:Mar. 2010
9. Apr. 2010.
evo kad napravim ovo
izadje mi ovo
a kad napravim tocno tako kako si rekao izadje ovo
mozda jesu glupa pitanja al nerazumin koji ku*ac je ovo??
Hvala
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/veh", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
CreatedCars = carid;
CreatedCar ++;
format(string, sizeof(string), " Vehicle %d spawned.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}izadje mi ovo
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 017: undefined symbol "PlayerInfo"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : warning 215: expression has no effect
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 001: expected token: ";", but found "]"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 029: invalid expression, assumed zero
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.a kad napravim tocno tako kako si rekao izadje ovo
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(176) : error 017: undefined symbol "cmd"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 017: undefined symbol "PlayerInfo"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : warning 215: expression has no effect
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 001: expected token: ";", but found "]"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 029: invalid expression, assumed zero
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.mozda jesu glupa pitanja al nerazumin koji ku*ac je ovo??
Hvala
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,395
Postovi:
86
Teme:
Pridružio se:Okt. 2009
Legenda Foruma
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
12 / 250 XP
Početnik(1)
888
Postovi:
66
Teme:
Pridružio se:Okt. 2009
9. Apr. 2010.
evo, kod mene su isti erori pa predpostavljam da je ista linija:
if (PlayerInfo < 4)9. Apr. 2010.
...:::---REZA---:::... wrote on April 9, 2010, 3:56 pm:
evo kad napravim ovo
izadje mi ovo
a kad napravim tocno tako kako si rekao izadje ovo
mozda jesu glupa pitanja al nerazumin koji ku*ac je ovo??
Hvala
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/veh", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh ");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
CreatedCars = carid;
CreatedCar ++;
format(string, sizeof(string), " Vehicle %d spawned.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}izadje mi ovo
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 017: undefined symbol "PlayerInfo"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : warning 215: expression has no effect
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 001: expected token: ";", but found "]"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 029: invalid expression, assumed zero
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.a kad napravim tocno tako kako si rekao izadje ovo
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(176) : error 017: undefined symbol "cmd"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 017: undefined symbol "PlayerInfo"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : warning 215: expression has no effect
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 001: expected token: ";", but found "]"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 029: invalid expression, assumed zero
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.mozda jesu glupa pitanja al nerazumin koji ku*ac je ovo??
Hvala
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,007
Postovi:
12
Teme:
Pridružio se:Nov. 2009
10. Apr. 2010.
pocni uređivati gf mod ili pen1,a ne odma pravis novi mod i zaspamas cijeli forum s temama...
prvo dobro nauci skriptati,pa onda radi svoj mod :S...
prvo dobro nauci skriptati,pa onda radi svoj mod :S...
10. Apr. 2010.
...:::---REZA---:::... wrote on April 9, 2010, 8:36 pm:
aj pls ucini mi uslugu bit cu ti vrlooo zahvalan..
pls stavi mi sta sve triban dodat u skriptu...
da bi moglo sve normalno funkcionirat.
Hvala brate.
pls stavi mi sta sve triban dodat u skriptu...
da bi moglo sve normalno funkcionirat.
Hvala brate.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
