[HELP]with this Error . . - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]with this Error . . (
/showthread.php?tid=353415)
[HELP]with this Error . . -
Devilxz97 - 23.06.2012
hey guys im using an Vehicle tuning Fs by someone on samp forums . . i dont remember his name xD
then im changing the Commands from strcmp to Zcmd . .
pawn Код:
CMD:tune1(playerid, params[])
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER)
{
return ModCar(playerid);
}
else
{
return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
}
}
return 1;
}
then i get this
Код:
error 010: invalid function or declaration
can someone help me with this Error ? Rep+
Re: [HELP]with this Error . . -
PrawkC - 23.06.2012
you have an extra closing brace
Re: [HELP]with this Error . . -
JaKe Elite - 23.06.2012
pawn Код:
CMD:tune1(playerid, params[])
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER)
{
return ModCar(playerid);
}
else return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
return 1;
}
Re: [HELP]with this Error . . -
Devilxz97 - 23.06.2012
i got this warning . .
Код:
warning 225: unreachable code
Re: [HELP]with this Error . . -
JaKe Elite - 23.06.2012
pawn Код:
CMD:tune1(playerid, params[])
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER)
{
ModCar(playerid);
}
else return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
return 1;
}
remove return in ModCar(playerid)