SA-MP Forums Archive
problem with command - 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: problem with command (/showthread.php?tid=643363)



problem with command - TheHave - 18.10.2017

My folks, I'm with a problem here.
I'm new to Pawn and giving error here.

command:
CMD:armour(playerid)
{
sendclientmessage(playerid, "you bought a armour.");
setplayerarmour(playerid, 100000);
return 1;
}
error:
error 017: undefined symbol "sendclientmessage"
error 017: undefined symbol "setplayerarmour"


Re: problem with command - Zeth - 18.10.2017

I aleady told you about this on your previous post on general section.

here you go again

Btw, Pawno is a case-sensitive language, so you need to follow correct format, read more here

Instead it should be
SendClientMessage and SetPlayerArmour
and SendClientMessage syntax is also wrong, it must be SendClientMessage(playerid, color, const string[]);


Re: problem with command - Lucases - 18.10.2017

Quote:
Originally Posted by TheHave
Посмотреть сообщение
My folks, I'm with a problem here.
I'm new to Pawn and giving error here.

command:
CMD:armour(playerid)
{
sendclientmessage(playerid, "you bought a armour.");
setplayerarmour(playerid, 100000);
return 1;
}
error:
error 017: undefined symbol "sendclientmessage"
error 017: undefined symbol "setplayerarmour"
Change them to "SendClientMessage" and "SetPlayerArmour" with capital letters.
Hope I helped you

Also change "you bought a armour" with "You have received a bulletproof vest". It's better and grammatically correct.


Re: problem with command - TheHave - 18.10.2017

help me


Re: problem with command - Zeth - 18.10.2017

PHP код:
CMD:armour(playerid)
{
SendClientmessage(playerid, -1"Your armor was filled up.");
SetPlayerArmour(playerid100000);
return 
1;

You should go with some basic tutorials first, there are lots of tutorials available and you can also check ******* videos.


Re: problem with command - AndreiWow - 18.10.2017

Don't give him copy paste, he will never learn, after you two explained him he just responded with "help me"...