I got few errors with my organization script. - 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: I got few errors with my organization script. (
/showthread.php?tid=234642)
I got few errors with my organization script. -
DjAdy - 04.03.2011
As the title above says i got some errors with my organization script.
It took me a wile to understand the codes but when i got it i made more orgs 25 to number but they were to many to put with sendclientmessage so i made it Dialog and it keeps showing me those errors :
Код:
C:\Users\DjAdy\Desktop\Romania Ultimate Generation\filterscripts\Orgs.pwn(61) : error 075: input line too long (after substitutions)
C:\Users\DjAdy\Desktop\Romania Ultimate Generation\filterscripts\Orgs.pwn(62) : error 037: invalid string (possibly non-terminated string)
C:\Users\DjAdy\Desktop\Romania Ultimate Generation\filterscripts\Orgs.pwn(62) : warning 215: expression has no effect
C:\Users\DjAdy\Desktop\Romania Ultimate Generation\filterscripts\Orgs.pwn(62) : error 001: expected token: ";", but found "\"
C:\Users\DjAdy\Desktop\Romania Ultimate Generation\filterscripts\Orgs.pwn(62) : error 029: invalid expression, assumed zero
C:\Users\DjAdy\Desktop\Romania Ultimate Generation\filterscripts\Orgs.pwn(62) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
And all are wraped around this :
Код:
if(strcmp(cmd, "/orgs", true) == 0)
{
if(!IsPlayerAdmin(playerid))
{
ShowPlayerDialog(playerid,orgs,DIALOG_STYLE_MSGBOX,"Organizations of R.U.G","- Pirates, ID 1\n\
- La Famiglia Sinatra ID 2\n\
- Scientist's ID 3\n\
- Marauder's ID 4\n\
- Hitman's ID 5\n\
- Drifters ID 6\n\
- Racers ID 7\n\
- Kun Kien ID 8\n\
- Yakuza ID 9\n\
- Russian Mob ID 10\n\
- Rebel's ID 11\n\
- Che Guevara's Camp ID 12\n\
- Los Santos Police Dep ID 13\n\
- Las Venturas Police Dep ID 14\n\
- San Fierro Police Dep ID 15\n\
- F.B.I ID 16\n\
- U.S.A Army ID 17\n\
- Area 51 Agents ID 18\n\
- Grove Street ID 19\n\
- Ballas Street ID 20\n\
- Siccilian Mob ID 21\n\
- Zombies ID 22\n\
- Mass Murderers ID 23\n\
- Unknown Race ID 24\n\
- Assassins ID 25\n","Ok","Close");
}
else
{
SendClientMessage(playerid,yellow,"Command doens't exist!");
return 1;
}
return 1;
}
Please anyone who knows what to do help me please.
Sorry for my spelling mistakes if i did any!
Re: I got few errors with my organization script. -
Ironboy - 04.03.2011
you added more stuff thats why it is not working, delete some stuff ,then it will work
Re: I got few errors with my organization script. -
DjAdy - 10.03.2011
and do you know what do i have to do to fix it and work properly?
Re: I got few errors with my organization script. -
HyperZ - 10.03.2011
Under include's:
OnGameModeInit:
Somewhere in your script:
pawn Код:
SetUpLongDialogBox()
{
LongDialogBox = "- La Famiglia Sinatra ID 2\n\
- Scientist's ID 3\n\
- Marauder's ID 4\n\
- Hitman's ID 5\n\
- Drifters ID 6\n\
- Racers ID 7\n\
- Kun Kien ID 8\n\
- Yakuza ID 9\n";
strcat(LongDialogBox, "- Russian Mob ID 10\n\
- Rebel's ID 11\n\
- Che Guevara's Camp ID 12\n\
- Los Santos Police Dep ID 13\n\
- Las Venturas Police Dep ID 14\n\
- San Fierro Police Dep ID 15\n\
- F.B.I ID 16\n\
- U.S.A Army ID 17\n\
- Area 51 Agents ID 18\n");
strcat(LongDialogBox, "- Grove Street ID 19\n\
- Ballas Street ID 20\n\
- Siccilian Mob ID 21\n\
- Zombies ID 22\n\
- Mass Murderers ID 23\n\
- Unknown Race ID 24\n\
- Assassins ID 25\n");
return 1;
}
OnPlayerCommandText:
pawn Код:
if(strcmp(cmd, "/orgs", true) == 0)
{
if(!IsPlayerAdmin(playerid))
{
ShowPlayerDialog(playerid,orgs,DIALOG_STYLE_MSGBOX,"Organizations of R.U.G",LongDialogBox,"Ok","Close");
}
else
{
SendClientMessage(playerid, yellow,"Command doens't exist!");
}
return 1;
}