31.07.2012, 21:23
To tentando fazer um filterscript aqui so que o Pawno da crash todas vez que tento compilar 
Ajuda pf

Ajuda pf
Код:
if(strcmp(cmd, "/goto", true) == 0) { #if !defined COLOR_DBLUE #define COLOR_DBLUE 0x7777DDFF #endif #if !defined COLOR_BLUE #define COLOR_BLUE 0x33CCFFAA #endif #if !defined COLOR_RED #define COLOR_RED 0xAA3333AA #endif new string[60]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_DBLUE, "Uso correto: /goto [id do player]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; giveplayerid = strval(tmp); if(IsPlayerConnected(giveplayerid)) { new PlayerName[30], GivePlayerName[30]; GetPlayerName(playerid, PlayerName, 30); GetPlayerName(giveplayerid, GivePlayerName, 30); format(string, sizeof(string), "Vocк se teleportou para %s(%i).", GivePlayerName, giveplayerid); SendClientMessage(playerid, COLOR_BLUE, string); GetPlayerPos(giveplayerid, plocx, plocy, plocz); new intid = GetPlayerInterior(giveplayerid); SetPlayerInterior(playerid,intid); printf("[Command] %s usou /goto para se teleportar para %s.", PlayerName, GivePlayerName); if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } } else { format(string, sizeof(string), "%d nгo й um player ativo!", giveplayerid); SendClientMessage(playerid, COLOR_RED, string); } return 1; }