problem with command
#1

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

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[]);
Reply
#3

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

help me
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)