Whats wrong here?
#1

Код:
	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
Reply
#2

Wow what did you try to do there?..
Reply
#3

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
Reply
#4

pawn Код:
SendClientMessage(playerid,0xff000000,"/health [gives you heath] /armour [gives you armour] /kill [kills you] /gotopd [returns you to PD Garage]");
Reply
#5

Hmm all of the above suggestions are still not working

I still get the same error messages
Reply
#6

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
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)