(26422) : error 079: inconsistent return types (array & non-array)
(26423) : error 079: inconsistent return types (array & non-array)
(26424) : error 079: inconsistent return types (array & non-array)
(26425) : error 079: inconsistent return types (array & non-array)
(26426) : error 079: inconsistent return types (array & non-array)
(26427) : error 079: inconsistent return types (array & non-array)
(26428) : error 079: inconsistent return types (array & non-array)
(26429) : error 079: inconsistent return types (array & non-array)
(26506) : error 079: inconsistent return types (array & non-array)
(26523) : error 079: inconsistent return types (array & non-array)
(26531) : error 079: inconsistent return types (array & non-array)
(26546) : error 079: inconsistent return types (array & non-array)
(26559) : error 079: inconsistent return types (array & non-array)
(26575) : error 079: inconsistent return types (array & non-array)
(26583) : error 079: inconsistent return types (array & non-array)
(26598) : error 079: inconsistent return types (array & non-array)
(26606) : error 079: inconsistent return types (array & non-array)
(26611) : error 079: inconsistent return types (array & non-array)
(26642) : error 079: inconsistent return types (array & non-array)
(26648) : error 079: inconsistent return types (array & non-array)
(26654) : error 079: inconsistent return types (array & non-array)
(26656) : error 079: inconsistent return types (array & non-array)
error 079: inconsistent return types (array & non-array)
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
if(!strcmp(cmdtext, "/setvip", true) || !strcmp(cmdtext, "/sv", true))
{
if (IsPlayerAdmin(playerid) )
{
new string[200], pos, level;
if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_RED, " USAGE: /setlevel [ID] [0-4]");
new id = strval(params[0]);
level = strval(params[pos]);
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, " Player with this ID is not on the server !");
if(level < 0 || level > 4) return SendClientMessage(playerid, COLOR_RED, " The level must be betwen 0 and 4 !");
format(string, sizeof(string), " **Administrator %s has changed your VIP Level.", PlayerName(playerid), PlayerName(id), level);
SendClientMessageToAll(COLOR_RED, string);
PlayerInfo[id][pVIP] = level;
printf("vip level = %d", PlayerInfo[id][pVIP]);
}
return 1;
}
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
return name;
}
error 079: inconsistent return types (array & non-array) |
myFunc()
{
new
i[] = "test",
j = random( 5 );
if( j < 3 )
return j;
else
return i;
}