10.09.2012, 19:02
Hey, can anyone fix this error:
Script is this:
PHP код:
C:\Users\Raul\Desktop\Newport City Roleplay\filterscripts\Narkovedaja.pwn(17) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\Raul\Desktop\Newport City Roleplay\filterscripts\Narkovedaja.pwn(28) : error 017: undefined symbol "SmugglerJob"
C:\Users\Raul\Desktop\Newport City Roleplay\filterscripts\Narkovedaja.pwn(28) : warning 215: expression has no effect
C:\Users\Raul\Desktop\Newport City Roleplay\filterscripts\Narkovedaja.pwn(28) : error 001: expected token: ";", but found "]"
C:\Users\Raul\Desktop\Newport City Roleplay\filterscripts\Narkovedaja.pwn(28) : error 029: invalid expression, assumed zero
C:\Users\Raul\Desktop\Newport City Roleplay\filterscripts\Narkovedaja.pwn(28) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
PHP код:
#include <a_samp>
#if defined GAMEMODE
main()
{
print("\n----------------------------------");
print(" Narkovedaja sьsteem");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
AddStaticVehicle(482,1772.6602,-2048.9277,13.6440,270.5698,3,0); // Smugglerjob 1
AddStaticVehicle(482,1773.2407,-2042.7849,13.6227,269.7848,3,4); // Smugglerjob 2
AddStaticVehicle(482,1772.5969,-2037.0247,13.6003,270.9971,3,6); // Smugglerjob 3
AddStaticVehicle(482,1772.4786,-2031.4073,13.5899,270.2319,3,1); // Smugglerjob 4
{
public OnPlayerCommandText(playerid, cmdtext[])
{
//smuggler
if (strcmp("/narkovedaja", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 482)
{
SmugglerJob[playerid] = 1;
SetPlayerCheckpoint(playerid,1751.0360,-2058.4458,13.5892,10);
SendClientMessage(playerid, 0xFFFF00AA, "* Vхta narkootikum garaazis ning vii ned 'em lazy mehele!");
return 1;
}
SendClientMessage(playerid, 0xFFFF00AA,"Sa pead olema narkovedajaautos, et seda tццd teha!");
}
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 482)
{
if(SmugglerJob[playerid] == 1){
SmugglerJob[playerid] = 2;
SetPlayerCheckpoint(playerid,1751.0360,-2058.4458,13.5892,10);
SendClientMessage(playerid, 0xFFFF00AA, "*Lazy ED: Liiguta oma paksu perset ning vii need kastis Bayside!");
return 1;
}
if(SmugglerJob[playerid] == 2){
SmugglerJob[playerid] = 3;
SetPlayerCheckpoint(playerid,-2431.2441,2312.9509,4.9844,10);
return 1;
}
if(SmugglerJob[playerid] == 3){
SmugglerJob[playerid] = 0;
SendClientMessage(playerid, 0xFFFF00AA, "*Lazy ED: Noh tore... Tule tagasi kui sul on rohkem narkot, nььd tхmba nahhui.!");
SendClientMessage(playerid, 0xFFFF00AA, "Хnnitlen. Lдbisid narkovedaja tцц, siin on sinu 500$");
GivePlayerMoney(playerid, 500);
DisablePlayerCheckpoint(playerid);
return 1;
}
}
ClientMessage language = Estonia, no need to change that