Need help with /vips command
#5

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/vips"true) == 0)
    {
        new 
str[128];
        for(new 
0MAX_PLAYERS++)
        {
            if(!
IsPlayerConnected(i)) continue;
            
GetPlayerName(istr24);
            if(
IsPlayerVipType(i,1)) { format(strsizeof str">> %s [ID %d] - VIP Silver"stri); }
            else if(
IsPlayerVipType(i,2)) { format(strsizeof str">> %s [ID %d] - VIP Gold"stri); }
            else if(
IsPlayerVipType(i,3)) { format(strsizeof str">> %s [ID %d] - VIP Premium"stri); }
            else continue;
            
SendClientMessage(playerid0xFFFF00FFstr);
        }
        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.
Reply


Messages In This Thread
Need help with /vips command - by Aleks1337 - 26.07.2011, 20:46
Re: Need help with /vips command - by sleepysnowflake - 26.07.2011, 20:48
Re: Need help with /vips command - by Aleks1337 - 26.07.2011, 21:02
Re: Need help with /vips command - by Shadoww5 - 26.07.2011, 21:41
Re: Need help with /vips command - by Aleks1337 - 26.07.2011, 21:53
Re: Need help with /vips command - by Aleks1337 - 27.07.2011, 01:47
Re: Need help with /vips command - by =WoR=Varth - 27.07.2011, 01:56
Re: Need help with /vips command - by Aleks1337 - 27.07.2011, 02:02
Re: Need help with /vips command - by =WoR=Varth - 27.07.2011, 02:13
Re: Need help with /vips command - by Shockey HD - 27.07.2011, 02:18

Forum Jump:


Users browsing this thread: 2 Guest(s)