help with a command i have 1 error
#1

this is the command
PHP код:
if(strcmp(cmd"/setworld"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USAGE: /setvw [playerid/PartOfName] [virworldid]");
                return 
1;
            }
            new 
playa;
            
playa ReturnUser(tmp);
            new 
virid;
            
tmp strtok(cmdtextidx);
            
virid strval(tmp);
            if (
PlayerInfo[playerid][pAdmin] >= 1337)
            {
                if(
IsPlayerConnected(playa))
                {
                    if(
playa != INVALID_PLAYER_ID)
                    {
                        
GetPlayerName(playagiveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
SetPlayerVirtualWorld(playavirid);
                        
format(stringsizeof(string), "   You have set %s virtual world to %d."giveplayervirid);
                        
SendClientMessage(playeridCOLOR_GRAD1string);
                        
format(stringsizeof(string), "   %s have set your virtual world to %d."sendernamevirid);
                        
SendClientMessage(playaCOLOR_GRAD1string);
                    }
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   You are not authorized to use that command!");
            }
        }
        return 
1;
    } 
i have this errorr
(6747) : error 017: undefined symbol "sendername" ==>>> GetPlayerName(playerid, sendername, sizeof(sendername));
Reply


Messages In This Thread
help with a command i have 1 error - by boyan96 - 29.08.2011, 17:36
Re: help with a command i have 1 error - by =WoR=G4M3Ov3r - 29.08.2011, 17:38
Re: help with a command i have 1 error - by boyan96 - 29.08.2011, 17:39
Re: help with a command i have 1 error - by =WoR=Varth - 29.08.2011, 17:40
Re: help with a command i have 1 error - by =WoR=G4M3Ov3r - 29.08.2011, 17:41
Re: help with a command i have 1 error - by =WoR=Varth - 29.08.2011, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)