Gates errors - 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: Gates errors (
/showthread.php?tid=136977)
Gates errors -
DarkPower - 27.03.2010
Код:
dcmd_otvori(const playerid,const params[])
{
#pragma unused params
new ID = strval(params);
if(gTeam[playerid] == PACOS && GetPlayerInterior(ID) == 10 && Encarcelado[ID] == 0 && gTeam[ID] != PACOS)
{
{
MoveObject(ograda1,2293.983398, 2499.074951, 8.585331, 0.0000);
SendClientMessage(playerid, 0xC8C8C8FF, "Otvaranje ograde!");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Moras biti policajac!");
}
}
return 1;
}
dcmd_zatvori(const playerid,const params[])
{
#pragma unused params
new ID = strval(params);
if(gTeam[playerid] == PACOS && GetPlayerInterior(ID) == 10 && Encarcelado[ID] == 0 && gTeam[ID] != PACOS)
{
{
MoveObject(ograda1, 2294.147705, 2498.926514, 3.992929, 0.0000);
SendClientMessage(playerid, 0xC8C8C8FF, "Zatvaranje ograde");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Moras biti policajac!");
}
}
return 1;
}
C:\Users\NASTIE\Desktop\Skyline CPS\Skyline\gamemodes\CANG.pwn(60
: error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\Skyline CPS\Skyline\gamemodes\CANG.pwn(625) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
LINE 608: else
LINE 625: else
Re: Gates errors -
Drake1994 - 27.03.2010
you should try this
Код:
} else {
SendClientMessage(playerid, 0xFF0000FF, "Moras biti policajac!");
}