Why this is not working - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why this is not working (
/showthread.php?tid=404794)
Why this is not working -
nhunor58 - 04.01.2013
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" NRG filterscript by TheBoss");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/nrg", true))
{
new Float:P[4];
if( NRG[playerid] > 0 ) DestroyVehicle(NRG[playerid]);
if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
GetPlayerPos(playerid,P[0],P[1],P[2]);
GetPlayerFacingAngle(playerid, P[3]);
NRG[playerid] = CreateVehicle(522,P[0],P[1],P[2], P[3], -1,-1,-1);
PutPlayerInVehicle(playerid, NRG[playerid], 0);
LinkVehicleToInterior(NRG[playerid], GetPlayerInterior(playerid));
SendClientMessage(playerid,0x0066FFAA, "Ai primit nrg-500-ul personal!");
return 1;
}
Re: Why this is not working -
mineralo - 04.01.2013
pawn Код:
if(!strcmp(cmdtext, "/nrg", true))
{
new Float:P[4];
if( NRG[playerid] != 0 ) DestroyVehicle(NRG[playerid]);
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
GetPlayerPos(playerid,P[0],P[1],P[2]);
GetPlayerFacingAngle(playerid, P[3]);
NRG[playerid] = CreateVehicle(522,P[0],P[1],P[2], P[3], -1,-1,-1);
PutPlayerInVehicle(playerid, NRG[playerid], 0);
LinkVehicleToInterior(NRG[playerid], GetPlayerInterior(playerid));
SendClientMessage(playerid,0x0066FFAA, "Ai primit nrg-500-ul personal!");
return 1;
}
Re: Why this is not working -
nhunor58 - 04.01.2013
Код:
C:\Users\Hunor\Desktop\nrg.pwn(2) : error 010: invalid function or declaration
C:\Users\Hunor\Desktop\nrg.pwn(5) : error 010: invalid function or declaration
C:\Users\Hunor\Desktop\nrg.pwn(6) : error 010: invalid function or declaration
C:\Users\Hunor\Desktop\nrg.pwn(16) : error 010: invalid function or declaration
C:\Users\Hunor\Desktop\nrg.pwn(18) : warning 203: symbol is never used: "P"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
I've got this error