i need scripting help , please! with this error i get
#1

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Test by Clarissa");
print("----------------------------------\n");
}

//COLORS

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00BOAA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF


#endif

public OnGameModeInit()
{
//Misc
SetGameModeText("Gamemode Test");
//Classes
AddPlayerClass(0,1958.3783,1343.1572,15.3746,269.1 425,29,100,0,0,0,0); // GuySpawn
AddPlayerClass(0,2241.8618,1427.4885,10.8203,269.0 924,28,300,0,0,0,0); // GuySpawn 2
CreatePickup(1239,23,1957.1445,1343.0732,15.3746,-1);
//Cars
AddStaticVehicle(401,2046.4935,1342.7532,10.4341,3 .2156,47,47); // Buravura
CreateVehicle(596,2591.5979,1855.5685,10.5541,266. 9174,0,1, 900); // LSPD car 1
CreateVehicle(596,2591.9958,1852.1458,10.5601,270. 3050,0,1, 900); // LSPD car 2
CreateVehicle(596,2591.3850,1848.2109,10.5208,269. 4202,0,1, 900); // LSPD car 3
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2027.7832,1623.2382,12.0506);
SetPlayerFacingAngle(playerid,269.7456);
SetPlayerCameraPos(playerid, 2031.6337,1623.6560,12.0799);
SetPlayerCameraLookAt(playerid, 2027.7832,1623.2382,12.0506);

return 1;
}

new MyPickup;
public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Heal", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) Welcome to my server's HELP command!");
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) Hope you enjoy the tutorial!");
return 1;
}
if (strcmp("/mytp", cmdtext, true, 10) == 10)
{
SetPlayerPos(playerid,2372.0339,1402.0870,10.6719) ;
SendClientMessage(playerid, COLOR_YELLOW , "You have Teleported");
}
if (strcmp("/unlockcars", cmdtext, true, 10) == 0)
{
Unlockmycars(playerid);
return 1;
}
if (strcmp("/lockcars", cmdtext, true, 10) == 0)
{
Lockmycars(playerid);
return 1;
}
return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MyPickup)(
SendClientMessage(playerid, COLOR_YELLOW, "You won $100 dollars!");
GivePlayerMoney(playerid, 100);
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(1, forplayerid, 0, 1);//LOCKS A CAR
SetVehicleParamsForPlayer(2, forplayerid, 0, 1);//LOCKS A CAR
SetVehicleParamsForPlayer(3, forplayerid, 0, 1);//LOCKS A CAR
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(1, forplayerid, 0, 1);//LOCKS A CAR
SetVehicleParamsForPlayer(2, forplayerid, 0, 1);//LOCKS A CAR
SetVehicleParamsForPlayer(3, forplayerid, 0, 1);//LOCKS A CAR
return 1;
}



Lockmycars(playerid)
{
SetVehicleParamsForPlayer(1, playerid, 0, 1); // LOCKS A CAR
SetVehicleParamsForPlayer(2, playerid, 0, 1); // LOCKS A CAR
SetVehicleParamsForPlayer(3, playerid, 0, 1); // LOCKS A CAR
}

Unlockmycars(playerid)
{
SetVehicleParamsForPlayer(1, playerid, 0, 1); // LOCKS A CAR
SetVehicleParamsForPlayer(2, playerid, 0, 1); // LOCKS A CAR
SetVehicleParamsForPlayer(3, playerid, 0, 1); // LOCKS A CAR
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

and this is the error!

samp03e_svr_R2_win32\gamemodes\test.pwn(213 -- 214) : error 001: expected token: ")", but found ";"
Reply
#2

What is in line 213 and 214

CTRL + G then type the line of the error.
Post the script code from that line.
Reply
#3

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == MyPickup)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "You won $100 dollars!");
        GivePlayerMoney(playerid, 100);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)