Quote:
Originally Posted by Shadoww5
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/vips", true) == 0)
{
new str[128];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(!IsPlayerConnected(i)) continue;
GetPlayerName(i, str, 24);
if(IsPlayerVipType(i,1)) { format(str, sizeof str, ">> %s [ID %d] - VIP Silver", str, i); }
else if(IsPlayerVipType(i,2)) { format(str, sizeof str, ">> %s [ID %d] - VIP Gold", str, i); }
else if(IsPlayerVipType(i,3)) { format(str, sizeof str, ">> %s [ID %d] - VIP Premium", str, i); }
else continue;
SendClientMessage(playerid, 0xFFFF00FF, str);
}
return 1;
}
return 0;
}
|
now i get this error
Код:
C:\Users\Aleksandar\Desktop\Samp Stuff\Server\gamemodes\FreeRoam.pwn(1827) : error 029: invalid expression, assumed zero
C:\Users\Aleksandar\Desktop\Samp Stuff\Server\gamemodes\FreeRoam.pwn(1827) : error 029: invalid expression, assumed zero
C:\Users\Aleksandar\Desktop\Samp Stuff\Server\gamemodes\FreeRoam.pwn(1846) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.