What is wrong ?
#1

When i put this code in my gamemode:

Quote:

if(strcmp(cmd, "/openlspdbarrier", true) == 0)
{
if(PlayerToPoint(10.0, playerid, 1552.3502197266,-1628.3983154297,13.3828125))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
MoveDynamicObject(lspdbarrier,1544.66406250, -1623.93884277, 12.98938847, 2.5);
MoveDynamicObject(lspdbarrier,1544.6640625, -1623.9384765625, 12.989388465881, 3.5);
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "Bariera a fost deschisa pentru 4 seconde.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_1BLUE, "* Nu faci parte din Politia Romana !");
return 1;
}
}


if(strcmp(cmd, "/openlspdgate", true) == 0)
{
if(PlayerToPoint(10.0, playerid, 1590.4803466797,-1638.3311767578,13.446451187134))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
MoveDynamicObject(lspdgate,1584.28515625, -1638.1611328125, 12.345502853394, 2.5);
MoveDynamicObject(lspdgate,1592.6831054688, -1638.4653320313, 12.345502853394, 3.5);
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "Poarta a fost deschisa pentru 4 seconde.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_1BLUE, "* Nu faci parte din Politia Romana !");
return 1;
}
}


if(strcmp(cmd, "/openlspddoor", true) == 0)
{
if(PlayerToPoint(10.0, playerid, 1583.3292236328,-1638.0363769531,13.451526641846))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
MoveDynamicObject(lspddoor,1584.052734375, -1638.0419921875, 13.574388504028, 2.5);
MoveDynamicObject(lspddoor,1584.1041259766, -1638.0202636719, 13.574388504028, 3.5);
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "Poarta a fost deschisa pentru 4 seconde.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_1BLUE, "* Nu faci parte din Politia Romana !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nu esti in zona LSPD.");
return 1;
}
}



I get this errors:


Quote:

D:\samp03\gamemodes\gf.pwn(1802) : error 017: undefined symbol "GivePlayerCash"
D:\samp03\gamemodes\gf.pwn(1940) : error 017: undefined symbol "GivePlayerCash"
D:\samp03\gamemodes\gf.pwn(2292) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2296) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(230 : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2312) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2316) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2320) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2324) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(232 : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2332) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2336) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(234 : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2352) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2356) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2360) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2364) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2376) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2380) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2384) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2396) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2400) : error 004: function "PlayerToPoint" is not implemented
D:\samp03\gamemodes\gf.pwn(2529) : error 017: undefined symbol "UpdateCountText"
D:\samp03\gamemodes\gf.pwn(2580) : error 017: undefined symbol "GivePlayerCash"
D:\samp03\gamemodes\gf.pwn(3113) : error 017: undefined symbol "GivePlayerCash"
D:\samp03\gamemodes\gf.pwn(3152) : error 017: undefined symbol "UpdateCountText"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

Reply
#2

U missed out a bracket {}
Check ur script

EDIT
try this

pawn Код:
if(strcmp(cmd, "/openlspdbarrier", true) == 0)
{
if(PlayerToPoint(10.0, playerid, 1552.3502197266,-1628.3983154297,13.3828125))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
MoveDynamicObject(lspdbarrier,1544.66406250, -1623.93884277, 12.98938847, 2.5);
MoveDynamicObject(lspdbarrier,1544.6640625, -1623.9384765625, 12.989388465881, 3.5);
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "Bariera a fost deschisa pentru 4 seconde.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_1BLUE, "* Nu faci parte din Politia Romana !");
}
return 1;
}
}


if(strcmp(cmd, "/openlspdgate", true) == 0)
{
if(PlayerToPoint(10.0, playerid, 1590.4803466797,-1638.3311767578,13.446451187134))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
MoveDynamicObject(lspdgate,1584.28515625, -1638.1611328125, 12.345502853394, 2.5);
MoveDynamicObject(lspdgate,1592.6831054688, -1638.4653320313, 12.345502853394, 3.5);
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "Poarta a fost deschisa pentru 4 seconde.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_1BLUE, "* Nu faci parte din Politia Romana !");
}
return 1;
}
}


if(strcmp(cmd, "/openlspddoor", true) == 0)
{
if(PlayerToPoint(10.0, playerid, 1583.3292236328,-1638.0363769531,13.451526641846))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
MoveDynamicObject(lspddoor,1584.052734375, -1638.0419921875, 13.574388504028, 2.5);
MoveDynamicObject(lspddoor,1584.1041259766, -1638.0202636719, 13.574388504028, 3.5);
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "Poarta a fost deschisa pentru 4 seconde.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_1BLUE, "* Nu faci parte din Politia Romana !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nu esti in zona LSPD.");
return 1;
}
}
Reply
#3

Another problem ...

I have this code: http://pastebin.com/tgqubGny

What is wrong with him ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)