Need help with pawn scripts
#1

hey, i got 2 errors
error 001: expected token: "-string end-", but found "-identifier-"
error 030: compound statement not closed at the end of file (started at line 7
Pawn compiler 3.2.3664

and my line 78 is
new cmd[30];

help plz
Reply
#2

www.compuphase.com/pawn/pawn-lang.pdf
Now you could really read something there. amirite?

Leopard
Reply
#3

cant open that site lol
Reply
#4

show the full source, and get adobe reader.
Reply
#5

source?
and why to get adobe reader
[sorry i am NOOB scripter]
Reply
#6

Quote:
Originally Posted by PedoBear
source?
and why to get adobe reader
[sorry i am NOOB scripter]
source, the full code you got, and adobe reader so you can read,
Quote:
Originally Posted by Leoapard
Reply
#7

full source? the whole Pawn??
and what to do in that site
Reply
#8

Quote:
Originally Posted by PedoBear
full source? the whole Pawn??
and what to do in that site
If you don't know what "source" means you shouldn't be coding. Learn first.

Leopard
Reply
#9

Quote:
Originally Posted by PedoBear
full source? the whole Pawn??
and what to do in that site
o my god, just give your script so we can try to help you.
Reply
#10

well i put whole pawn
#include <a_samp>

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

#if defined FILTERSCRIPT

#define COLOR_LIGHTBLUE 0xBBFFFFFF
#define COLOR_GOLD 0xB8860BAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_DARKBLUE 0x0000D0FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_LIGHTBLUE 0xBBFFFFFF
#define COLOR_BLACK 0x000000FF

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Admin House. By Pedo And Masa");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Admin House By Pedo And Masa");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{ //21 objects
CreateObject(3399, 2467.738769,1855.526367,16.250654,0.000000,0.00000 0,283.413391);
CreateObject(3399, 2470.598632,1844.518554,20.758825,0.000000,0.00000 0,285.800170);
CreateObject(3399, 2473.579345,1833.986816,25.430160,0.000000,0.00000 0,285.883270);
CreateObject(3092, 2434.759765,1819.469726,16.322219,0.000000,0.00000 0,141.258514);
CreateObject(1433, 2453.804443,1826.486816,15.502201,0.000000,0.00000 0,172.938323);
CreateObject(1655, 2453.125488,1848.948852,16.959161,9.000000,0.00000 0,3.558355);
CreateObject(1655, 2452.806884,1853.395263,20.697111,29.000000,0.0000 00,4.000000);
CreateObject(1655, 2452.849853,1855.434692,25.991380,54.000000,3.0000 00,0.000000);
CreateObject(1655, 2453.629394,1836.266723,17.063116,12.000000,0.0000 00,-175.000000);
CreateObject(1655, 2453.821533,1831.957641,21.569358,32.000000,1.0000 00,-176.000000);
CreateObject(1655, 2453.989501,1829.341674,27.069000,50.000000,0.0000 00,-175.000000);
CreateObject(1473, 2464.944824,1824.757446,28.670885,-28.000000,10.000000,40.000000);
CreateObject(1473, 463.856933,1826.341308,28.174953,-40.000000,8.000000,40.000000);
CreateObject(1473, 463.163818,1828.130615,27.872116,-50.000000,0.000000,16.000000);
CreateObject(1366, 445.130126,1844.414306,19.967063,0.000000,0.000000 ,18.000000);
AddStaticVehicle(522,2475.2327,1827.1085,15.8919,9 .5962,8,82); //admin only
AddStaticVehicle(522,2468.8472,1826.1243,15.8839,4 .8323,51,11; //admin only
AddStaticVehicle(522,2470.8784,1826.6488,15.8877,9 .3765,39,106); //admin only
AddStaticVehicle(522,2472.8643,1826.7271,15.8750,1 2.0926,36,105); //admin only
AddStaticVehicle(471,2478.1729,1828.8284,15.8037,9 .8507,120,112); //admin only
AddStaticVehicle(471,2465.0618,1826.4093,15.8056,4 .2886,120,114); //admin only

// Don't use these lines if it's a filterscript
SetGameModeText("House By Pedo And Masa");
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[30];
new idx;
cmd = "strtok"(cmdtext, idx);

if(strcmp(cmd, "/Credit", true) == 0 || strcmp(cmdtext, "/Credits", true)==0)
{
SendClientMessage(playerid, COLOR_RED, "Map Made By Pedo And Masa.");
SendClientMessage(playerid, COLOR_GOLD, "Thanks for Downloading and using this.");
SendClientMessage(playerid, COLOR_GREEN, "Please DON'T Change any thing above, Thanks Pedo And Masa");
return 1;
}
if(strcmp(cmd, "/adh", true) == 0)
{
new State=GetPlayerState(playerid,0);
}
SetPlayerInterior(playerid,0);
SetPlayerPos(2487.0264,1834.5226,16.3222,78.9400);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)