02.04.2011, 17:26
Quote:
443.CreateObject(703, -1838.3984375, -3831.4243164063, 17.374668121338, 0, 0, 7.2044677734375); |
443.CreateObject(703, -1838.3984375, -3831.4243164063, 17.374668121338, 0, 0, 7.2044677734375); |
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/go", cmdtext, true, 3) == 0)
{
SetPlayerPos(playerid, -1838.3984375, -3831.4243164063, 21.374668121338);
return 1;
}
return 0;
}
C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 3 : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 480) : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 546) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 549) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 551) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
if(!strcmp(cmdtext,"/tele",true)) { SetPlayerPos(playerid, -1838.3984375, -3831.4243164063, 17.374668121338); return true;}
C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 3 : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 480) : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 546) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 54 : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
if(strcmp(cmd, "/gotoxyz", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Usage: /gotoxyz [X] [Y] [Z]"); return 1; } new Float:para1; new Float:para2; new Float:para3; para1 = strval(tmp); tmp = strtok(cmdtext, idx); para2 = strval(tmp); tmp = strtok(cmdtext, idx); para3 = strval(tmp); if(PlayerInfo[playerid][pAdmin] >= 3) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, para1,para2,para3); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else SetPlayerPos(playerid, para1,para2,para3); SendClientMessage(playerid, COLOR_GREEN, "You have been teleported"); PlayerInfo[playerid][pInt] = 0; } else { SendClientMessage(playerid, COLOR_RED, "You don't have permission !"); } } return 1; }