error for playerid
#1

hey why do i got error for playerid

location: gamemodinit

Script Code:

PHP код:
    RemoveBuildingForPlayer(playerid73882616.61722245.265610.05470.25);
    
RemoveBuildingForPlayer(playerid70972619.11722335.414116.32030.25);
    
RemoveBuildingForPlayer(playerid72402626.20312353.38288.69530.25);
    
RemoveBuildingForPlayer(playerid72412626.20312353.38288.69530.25);
    
RemoveBuildingForPlayer(playerid72852616.61722245.265610.05470.25);
    
RemoveBuildingForPlayer(playerid69542607.28132358.242228.15630.25); 
Errors:

PHP код:
C:\Users\semo\Desktop\files\Server\gamemodes\grab.pwn(551) : error 017undefined symbol "playerid"
C:\Users\semo\Desktop\files\Server\gamemodes\grab.pwn(552) : error 017undefined symbol "playerid"
C:\Users\semo\Desktop\files\Server\gamemodes\grab.pwn(553) : error 017undefined symbol "playerid"
C:\Users\semo\Desktop\files\Server\gamemodes\grab.pwn(554) : error 017undefined symbol "playerid"
C:\Users\semo\Desktop\files\Server\gamemodes\grab.pwn(555) : error 017undefined symbol "playerid"
C:\Users\semo\Desktop\files\Server\gamemodes\grab.pwn(556) : error 017undefined symbol "playerid" 
HOW TO FIX THIS PROBLEM

if i do new playerid;

the buildings won't dissapear for playerid

-_-
Reply
#2

cut this code:
pawn Код:
RemoveBuildingForPlayer(playerid, 7388, 2616.6172, 2245.2656, 10.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 7097, 2619.1172, 2335.4141, 16.3203, 0.25);
    RemoveBuildingForPlayer(playerid, 7240, 2626.2031, 2353.3828, 8.6953, 0.25);
    RemoveBuildingForPlayer(playerid, 7241, 2626.2031, 2353.3828, 8.6953, 0.25);
    RemoveBuildingForPlayer(playerid, 7285, 2616.6172, 2245.2656, 10.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 6954, 2607.2813, 2358.2422, 28.1563, 0.25);
then goto OnPlayerSpawn and paste this:
pawn Код:
RemoveBuildingForPlayer(playerid, 7388, 2616.6172, 2245.2656, 10.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 7097, 2619.1172, 2335.4141, 16.3203, 0.25);
    RemoveBuildingForPlayer(playerid, 7240, 2626.2031, 2353.3828, 8.6953, 0.25);
    RemoveBuildingForPlayer(playerid, 7241, 2626.2031, 2353.3828, 8.6953, 0.25);
    RemoveBuildingForPlayer(playerid, 7285, 2616.6172, 2245.2656, 10.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 6954, 2607.2813, 2358.2422, 28.1563, 0.25);
that will work 100% sure
Reply
#3

My god. Lost your common sense? There are no players connected when the mode starts! How is the function supposed to remove it for them then? Use OnPlayerConnect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)