SA-MP Forums Archive
Quick help, thanks - 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: Quick help, thanks (/showthread.php?tid=439488)



---------- - K3nX - 25.05.2013

----------


Re: Quick help, thanks - Slix_ - 25.05.2013

Quote:
Originally Posted by K3nX
Посмотреть сообщение
SendClientMessage(COLOR_GREEN, "You have dragged %s into your vehicle !",giveplayer);
SendClientMessage(COLOR_GREEN, "You have been dragged into %s your vehicle !",player);

Those two lines has error like:
error 035: argument type mismatch (argument 2)
Use this instead:
pawn Код:
new string[128];
format(string, sizeof(string), "You have dragged %s into your vehicle !", giveplayer);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been dragged into %s your vehicle !", player);
SendClientMessage(giveplayerid, COLOR_GREEN, string);



Re: Quick help, thanks - kalanerik99 - 25.05.2013

You forget "playerid"

PHP код:
SendClientMessage(playerid,COLOR_GREEN"You have dragged %s into your vehicle !",giveplayer);
SendClientMessage(playerid,COLOR_GREEN"You have been dragged into %s your vehicle !",player);