09.10.2016, 22:35
WTF
C:\Users\Natan\Desktop\Brasil Power Hard\filterscripts\Posto.pwn( : warning 204: symbol is assigned a value that is never used: "PostoPolicialEntrada"
C:\Users\Natan\Desktop\Brasil Power Hard\filterscripts\Posto.pwn(9) : warning 204: symbol is assigned a value that is never used: "PostoPolicialSaida"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
C:\Users\Natan\Desktop\Brasil Power Hard\filterscripts\Posto.pwn( : warning 204: symbol is assigned a value that is never used: "PostoPolicialEntrada"
C:\Users\Natan\Desktop\Brasil Power Hard\filterscripts\Posto.pwn(9) : warning 204: symbol is assigned a value that is never used: "PostoPolicialSaida"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Код:
#include <a_samp> new PostoPolicialEntrada; new PostoPolicialSaida; public OnFilterScriptInit() { PostoPolicialEntrada = CreatePickup(1318, 19, 1679.9674, -1745.8417, 13.5461); PostoPolicialSaida = CreatePickup(1318, 19, 1678.7576, -1745.9883, 13.6466); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/entrarposto", cmdtext, true) == 0) { if (IsPlayerInRangeOfPoint(playerid, 2.0, 1679.9674, -1745.8417, 13.5461)) { SetPlayerPos(playerid, 1678.7576, -1745.9883, 13.6466); } else { SendClientMessage(playerid, -1, "Vocк nгo estб na entrada do Posto Policial para entrar!"); // Aqui estarб enviando uma mensagem pro player caso ele nгo estiver na coordenada do IsPlayerInRangeOfPoint. } } if (strcmp("/sairposto", cmdtext, true) == 0) //Mude o comando que estб entre as aspas. { if (IsPlayerInRangeOfPoint(playerid, 2.0, 1678.7576, -1745.9883, 13.6466)) // Aqui agora vocк irб inverter as coordenadas, ou seja, irб botar agora as coordenadas de dentro aqui no IsPlayerInRangeOfPoint, apenas copie as coordenadas do SetPlayerPos do seu comando de entrar e substitua aqui em cima. { SetPlayerPos(playerid, 1679.9674, -1745.8417, 13.5461); } else { SendClientMessage(playerid, -1, "Vocк nгo estб na saida do Posto Policial para sair!"); } } } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ((newkeys==KEY_SECONDARY_ATTACK)) { OnPlayerCommandText(playerid,"/entrarposto"); OnPlayerCommandText(playerid,"/sairposto"); } return 1; }