if (strcmp(cmdtext, "/telealla", true)==0)
{
GetPlayerName(playerid,pName,64);
if(!strcmp(pName,"Steven_Hayen",true)) // Change Name_Name to your name.
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetVehiclePos(GetPlayerVehicleID(playerid), 260.1984,-1230.9200,58.5478);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 180.945861);
return 1;
}
else
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 260.1984,-1230.9200,58.5478);
SetPlayerFacingAngle(playerid, 180.945861);
return 1;
}
}
}
if (strcmp(cmdtext, "/telealla", true)==0)
{
GetPlayerName(playerid,pName,64);
if(!strcmp(pName,"Steven_Hayen",true)) // Change Name_Name to your name.
{
[COLOR="Red"]SendClientMessage(playerid, COLOR_HERE, "Your name is not Steven_Hayden. You can not teleport"[/COLOR]
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetVehiclePos(GetPlayerVehicleID(playerid), 260.1984,-1230.9200,58.5478);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 180.945861);
return 1;
}
else
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 260.1984,-1230.9200,58.5478);
SetPlayerFacingAngle(playerid, 180.945861);
return 1;
}
}
}
if (strcmp(cmdtext, "/telealla", true)==0)
{
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
if(!strcmp(pName,"Steven_Hayen",true)) // Change Name_Name to your name.
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetVehiclePos(GetPlayerVehicleID(playerid), 260.1984,-1230.9200,58.5478);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 180.945861);
}
else
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 260.1984,-1230.9200,58.5478);
SetPlayerFacingAngle(playerid, 180.945861);
}
}
else return SendClientMessage(playerid,COLOR_RED,"You may not teleport!");
return 1;
}
C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : error 029: invalid expression, assumed zero C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : error 001: expected token: "-string end-", but found "-identifier-" C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : error 029: invalid expression, assumed zero C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
tried to fix this, but look's like i'm way too newbie at this.
Код:
C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : error 029: invalid expression, assumed zero C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : error 001: expected token: "-string end-", but found "-identifier-" C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : error 029: invalid expression, assumed zero C:\Documents and Settings\Steven\Desktop\Server Stuff\RRserver\Ravens_Roleplay_0.3c\Ravens_Roleplay_0.3c\Raven's Roleplay 0.3c\gamemodes\larp2.pwn(26868) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |