[HELP]String - 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: [HELP]String (
/showthread.php?tid=505947)
[HELP]String -
JohnD123 - 11.04.2014
Hello, I'm a new scripter, I need your help with string, maybe some of you assuming this is easy, but I will appreciate all help from you all.
This is the warning:
Код:
New.pwn(243) : warning 202: number of arguments does not match definition
This is the line:
Код:
243: format(string,sizeof(string), "%s is on duty as an admin", GetPlayerName(playerid));
This is only a warning, but it will be better if no warning right? Thanks for helping
Re: [HELP]String -
AhmedMohamed - 11.04.2014
show us your string define for that line please?
like that:
and btw you can't ignore this warning
Re: [HELP]String -
gtakillerIV - 11.04.2014
Read on how to use GetPlayerName:
http://www.wiki.sa-mp.com/wiki/GetPlayerName
Re: [HELP]String -
JohnD123 - 11.04.2014
My string code is
Re: [HELP]String -
Bingo - 11.04.2014
This is correct one.
Re: [HELP]String -
JohnD123 - 11.04.2014
Ok, I got it, thanks for helping