07.07.2013, 14:24
remove "return" from here:
to
what is the logic of this?
You first get player health and armour of ID 0 then take an ID
GetPlayerWantedLevel return wanted level, but you dont store it anywhere
Why
?
temp dont store so much info, so why 1000? temp lose his old value so just 30 (or more)
Another variable :/, we already have temp.
This error
inconsistent return types (array & non-array)
will be fixed when you remove "return variable" anyway take care of what i said.
Код:
if(CanUseCIA[playerid] == 1337) format(variable, sizeof(variable), "Yes"); else format(variable, sizeof(variable), "No"); return variable;
Код:
if(CanUseCIA[playerid] == 1337) format(variable, sizeof(variable), "Yes"); else format(variable, sizeof(variable), "No");
Код:
new ID; new Float:gihp, Float:giar; GetPlayerHealth(ID, gihp); GetPlayerArmour(ID, giar); GetPlayerWantedLevel(ID); new temp[1000]; new info[1000]; if(sscanf(params, "u", ID)) { SendClientMessage(playerid,COLOR_ERROR,"USAGE: /tinfo (Player Name/ID)"); return 1; }
Код:
new ID; new Float:gihp, Float:giar; new temp[1000]; new info[1000]; if(sscanf(params, "u", ID)) { SendClientMessage(playerid,COLOR_ERROR,"USAGE: /tinfo (Player Name/ID)"); return 1; } GetPlayerHealth(ID, gihp); GetPlayerArmour(ID, giar); GetPlayerWantedLevel(ID);
Why
Код:
new temp[1000]; new info[1000];
temp dont store so much info, so why 1000? temp lose his old value so just 30 (or more)
Код:
if(CanUseCIA[playerid] == 1337) format(temp, sizeof(temp), "Yes"); else format(temp, sizeof(temp), "No"); strcat(info, temp); // you miss this,
This error
inconsistent return types (array & non-array)
will be fixed when you remove "return variable" anyway take care of what i said.