SA-MP Forums Archive
What's wrong? - 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: What's wrong? (/showthread.php?tid=320430)



What's wrong? - Gerira Gaijin - 22.02.2012

pawn Код:
format(pInfo[mdcID[playerid]][pWantedFor], sizeof(pInfo[mdcID[playerid]][pWantedFor]), "%s", inputtext);
Код:
D:\SAMP\Server\filterscripts\updates.pwn(461) : error 001: expected token: "]", but found "-identifier-"
D:\SAMP\Server\filterscripts\updates.pwn(461) : warning 215: expression has no effect
D:\SAMP\Server\filterscripts\updates.pwn(461) : error 001: expected token: ";", but found "]"
D:\SAMP\Server\filterscripts\updates.pwn(461) : error 029: invalid expression, assumed zero
D:\SAMP\Server\filterscripts\updates.pwn(461) : fatal error 107: too many error messages on one line
What's wrong with it? I can't notice the error for some reason :/


Re: What's wrong? - mitchboy - 22.02.2012

pawn Код:
format(pInfo[playerid][pWantedFor], sizeof(pInfo[playerid][pWantedFor]), "%s", inputtext);
also, in my script i can do it like WantedFor, i don't need to use p in front of it. Not sure how it's built in your script.


Re: What's wrong? - Gerira Gaijin - 22.02.2012

I use pWantedFor, cause I got used to assigning small letters in enums. Most of the time, p stands for Player, s for Server etc. It's easier to remember.


Re: What's wrong? - mitchboy - 22.02.2012

but tried my code, for me PInfo[playerid][WantedFor] works so