What's wrong?
#1

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 :/
Reply
#2

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)