undefined symbol
#1

pawn Код:
new Float:Teleport[4],
new interior, vw,
new Float:pY, Float:pZ, Float:pAngle;
pawn Код:
CMD:makeport(playerid, params[])
{
        new Float:pos[4];
        GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
        GetPlayerFacingAngle(playerid, pos[3]);

        Teleport[0] = pos[0]; // error line, undefined symbol teleport..
        Teleport[1] = pos[1];
        Teleport[2] = pos[2];
        Teleport[3] = pos[3];

        interior = GetPlayerInterior(playerid);
        vw = GetPlayerVirtualWorld(playerid);
        SendClientMessageToAll(-1, "Admin made the port, use /gotoport");
        return 1;
}
any help?
Reply
#2

Try this?
PHP код:
new Float:Teleport[4];
new 
interiorvw;
new 
Float:pYFloat:pZFloat:pAngle
PHP код:
CMD:makeport(playeridparams[])
{
        new 
Float:pos[4];
        
GetPlayerPos(playeridpos[0], pos[1], pos[2]);
        
GetPlayerFacingAngle(playeridpos[3]);
        
Teleport[0] = pos[0]; // error line, undefined symbol teleport..
        
Teleport[1] = pos[1];
        
Teleport[2] = pos[2];
        
Teleport[3] = pos[3];
        
interior GetPlayerInterior(playerid);
        
vw GetPlayerVirtualWorld(playerid);
        
SendClientMessageToAll(-1"Admin made the port, use /gotoport");
        return 
1;

Reply
#3

yes damn, i was doing enumerations and put , instead of ; at the end of the new.. figured that by myself now. so sorry, stupid me -.-

Thanks anyway +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)