Help please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please (
/showthread.php?tid=161280)
Help please -
[NTX]MikeQ - 19.07.2010
Hey, i have a prblem with timer and heres my code
pawn Код:
public FBI(playerid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateVehicle(522, X+8, Y, Z, 90, 0, 0, 5);
SendClientMessage(playerid,COLOR_GREEN,"You have spawned a NRG ");
}
But when i compile:
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(227) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(405) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Line 227 =
Re: Help please -
[NTX]MikeQ - 19.07.2010
Lol i had at top
But i added this
and no errors
Re: Help please -
TouR - 19.07.2010
Код:
forward FBI(playerid);
Do you have this?
Re: Help please -
[NTX]MikeQ - 19.07.2010
Ok so i wont make new thread so i have one more problem
my code:
pawn Код:
COMMAND:fbi(playerid,params[])
{
if(GetPlayerSkin(playerid) == 286)
{
SendClientMessage(playerid,COLOR_GREEN,"Your car will spawn in 10 seconds");
SetTimer("FBI",10000,0);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Your not FBI to use this COMMAND");
}
return 1;
}
But ingame i type /fbi it sais SERVER:UNKNOWN COMMAND
How to fix this
Re: Help please -
[NTX]MikeQ - 19.07.2010
Bump i need this really fast cuz im alt tabbed ingame an ppl are waiting me :P
Re: Help please -
Kar - 19.07.2010
try this
pawn Код:
CMD:fbi(playerid,params[])
{
if(GetPlayerSkin(playerid) == 286) return SendClientMessage(playerid,COLOR_RED,"Your not FBI to use this COMMAND");
SendClientMessage(playerid,COLOR_GREEN,"Your car will spawn in 10 seconds");
SetTimer("FBI",10000,0);
return 1;
}
change CMD to your zcmd
Re: Help please -
[NTX]MikeQ - 19.07.2010
Ok ty dude