30.11.2011, 15:29
PHP код:
invalid subscript (not an array or too many subscripts): "playerid"
invalid subscript (not an array or too many subscripts): "playerid"
C:\Users\Thomas\Desktop\WickedRP.pwn(33682) : warning 217: loose indentation
C:\Users\Thomas\Desktop\WickedRP.pwn(33703) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
if(strcmp(params,"adminhq",true) == 0)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 921.5,-3160.8,561.2);
LinkVehicleToInterior(tmpcar, 0);
SetVehicleVirtualWorld(tmpcar, 0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 2227.60, -1674.89, 14.62);
}
SendClientMessageEx(playerid, COLOR_GRAD1, "Welcome to the Admin HQ");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVW] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
if(strcmp(params,"adminhq",true) == 0) {
if (GetPlayerState(playerid) == 2) {
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 921.5,-3160.8,561.2);
LinkVehicleToInterior(tmpcar, 0);
SetVehicleVirtualWorld(tmpcar, 0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else {
SetPlayerPos(playerid, 2227.60, -1674.89, 14.62);
}
SendClientMessageEx(playerid, COLOR_GRAD1, "Welcome to the Admin HQ");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVW] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
This forum requires that you wait 120 seconds between posts. Please try again in 52 seconds. SURE ....BABE |
pawn Код:
|
// OnPlayerCommandtext
if(strcmp(params,"adminhq",true) == 0) {
if (GetPlayerState(playerid) == 2) {
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 921.5,-3160.8,561.2);
LinkVehicleToInterior(tmpcar, 0);
SetVehicleVirtualWorld(tmpcar, 0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else {
SetPlayerPos(playerid, 2227.60, -1674.89, 14.62);
}
SendClientMessageEx(playerid, COLOR_GRAD1, "Welcome to the Admin HQ");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVW] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
// For example this is another command
if(strcmp(params,"adminhq",true) == 0) {
if (GetPlayerState(playerid) == 2) {
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 921.5,-3160.8,561.2);
LinkVehicleToInterior(tmpcar, 0);
SetVehicleVirtualWorld(tmpcar, 0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else {
SetPlayerPos(playerid, 2227.60, -1674.89, 14.62);
}
SendClientMessageEx(playerid, COLOR_GRAD1, "Welcome to the Admin HQ");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVW] = 0;
PlayerInfo[playerid][pLocal] = 255;
return 1;
}
return 0;
}