xyz.pwn(22109) : warning 214: possibly a "const" array argument was intended: "string"
#5

Quote:
Originally Posted by Calisthenics
View Post
The compiler does not like to pass a string directly with the latest version.

pawn Code:
static profile_params[] = "0";
if(PlayerProfile[playerid]) cmd_profile(playerid, profile_params);
Since the text in `SetPlayerCriminal` function can be used in other parts of the script, create constants globally.
It's ok??

BEFORE:
Quote:

forward SetPlayerCriminal(playerid, declare[], reason[], wanted);

AFTER:
Quote:

forward SetPlayerCriminal(playerid, const declare[], const reason[], wanted);

?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)