Whats wrong here? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats wrong here? (
/showthread.php?tid=69757)
Whats wrong here? -
WanabePC - 20.03.2009
Код:
if(strcmp(cmd, "/commands", true) == 0)
{
new Float:Commands;
SendClientMessage(playerid, 0xff000000 , "/health [gives you health] /armour [gives you armour]);
SendClientMessage(playerid, 0xff000000 , "/kill [kills you] /gotopd [returns you to PD Garage]);
SendClientMessage(playerid, 0xff000000 , "/getgun [brings up a list of guns to have, just type in the number]);
return 1;
}
I cant see what it wants me to do, these are the errors Im getting,
Код:
(230) : error 037: invalid string (possibly non-terminated string)
(230) : error 017: undefined symbol "gives"
(230) : error 017: undefined symbol "you"
: fatal error 107: too many error messages on one line
Row 230 is;
SendClientMessage(playerid, 0xff000000 , "/health [gives you health] /armour [gives you armour]);
All help is welcome
Many Thanks in advance
Alex
Re: Whats wrong here? -
MenaceX^ - 20.03.2009
Wow what did you try to do there?..
Re: Whats wrong here? -
brett7 - 20.03.2009
pawn Код:
if(strcmp(cmd, "/commands", true) == 0)
{
SendClientMessage(playerid, 0xff000000 , "/health [gives you health] /armour [gives you armour]");
SendClientMessage(playerid, 0xff000000 , "/kill [kills you] /gotopd [returns you to PD Garage]");
SendClientMessage(playerid, 0xff000000 , "/getgun [brings up a list of guns to have, just type in the number]");
return 1;
}
that should work, because you didn't need the Float bit
Re: Whats wrong here? -
MenaceX^ - 20.03.2009
pawn Код:
SendClientMessage(playerid,0xff000000,"/health [gives you heath] /armour [gives you armour] /kill [kills you] /gotopd [returns you to PD Garage]");
Re: Whats wrong here? -
WanabePC - 20.03.2009
Hmm all of the above suggestions are still not working
I still get the same error messages
Re: Whats wrong here? -
WanabePC - 20.03.2009
I have tried al the suggestions at the same time, individually, ect
and I still get the same errors
If someone re-wrote it out (if it is in the correct format in the first place) it might help (just a suggestion because you look at it more through when your copying it)
Thanks for all your effort guys I really appreciate it
Re: Whats wrong here? -
WanabePC - 20.03.2009
Guys this is now Sloved as I forgot to add " to the end of the second and third line xD
Classic N00b mistake,
Thanks again for you time and help guys