06.10.2017, 13:23
title says
nightmare for every scripter:
and probably strangesrt error
DONT YOU SAY I DONT KNOW PARAMETERS I JUST PROBABLY SCREWED ON OBVIOUS PLACEC
NOTe: i have more dialogs above 1 i sent
nightmare for every scripter:
PHP код:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : error 002: only a single statement (or expression) can follow each "case"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : error 001: expected token: ";", but found ")"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(709) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : error 037: invalid string (possibly non-terminated string)
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : error 017: undefined symbol "Bus"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : error 017: undefined symbol "vozac"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
PHP код:
if(dialogid == DIALOG_ATELE)
{
if(listitem == 1)
{
switch(listitem)
{
"Grove Street Families\n\
Yakuza\n\
Ruska Mafija\n\
Ballas\n\
Aztecas\n\
Policija\n\
SAJ\n\
Vagosi\n\
UNPROFOR\n\
Admin baza\n", // errors HERE! line 707
"Odaberi","Izlaz");
{
{
if(listitem == 2)
{
switch(listitem)
{
"Bus vozac\n\
Taxi vozac\n\
Smecar\n\
Elektricar\n\
Kamiondzija\n\
Automehanicar\n\
Sumar\n\
Doktor\n\
Vatrogasci\n\
Gradjevinci\n\
Kurir\n\
Mornarica\n\
Novinari\n\",
"Odaberi","Izlaz"); //errors a line above but i for some reasons i couldnt comment it
}
}
if(listitem == 3)
{
SetPlayerPos(playerid,419.0551,-1564.9272,27.5752)
}
if(listitem == 4)
{
switch(listitem)
{
"Skola\n Banka\n Auto skola\n Burg\n Opstina\n Ammunation\n Glen Park\n Zlatara\n Plaza\n Disko\n Pijaca/Auto pijaca\n Glavna trafika\n Bolnica\n Marina\n Garatzni centar/hotel",
"Odaberi,"Izlaz");
}
}
}
switch(dialogid)
{
case DIALOG_ORG:
{
if(response)
{
case 0: SetPlayerPos(playerid,2420.8647,-1668.8928,13.5438)
case 1: SetPlayerPos(playerid,1246.1887,-741.8353,94.7851)
case 2: SetPlayerPos(playerid,2717.1182,-2399.8020,13.6328)
case 3: SetPlayerPos(playerid,2244.0034,-1230.9122,23.9769)
case 4: SetPlayerPos(playerid,1736.6313,-2106.9263,13.5469)
case 5: SetPlayerPos(playerid,1539.3510,-1682.2202,13.5469)
case 6: SetPlayerPos(playerid,1140.9135,-1203.8973,19.1277)
case 7: SetPlayerPos(playerid,2345.9319,-1165.2333,27.3034)
case 8: SetPlayerPos(playerid,1140.9135,-1203.8973,19.1277) //ZAMJENI LOKACIJU
case 9: SetPlayerPos(playerid,1140.9135,-1203.8973,19.1277) //ZAMJENI LOKACINJU
}
}
}
switch(dialogid)
{
case DIALOG_POSLOVI:
{
if(response)
{
case 0: SetPlayerPos(playerid,1814.2462,-1901.5500,13.5736)
case 1: SetPlayerPos(playerid,932.3495,-1211.0541,16.9109)
case 2: SetPlayerPos(playerid,1663.9667,-1560.8713,13.5469)
case 3: SetPlayerPos(playerid,1970.0997,-1974.6549,13.5469)
case 4: SetPlayerPos(playerid,-91.2065,-1131.1624,1.1154)
case 5: SetPlayerPos(playerid,-52.7558,-1588.2860,3.0132)
case 6: SetPlayerPos(playerid,1330.2478,-708.1716,91.8973)
case 7: SetPlayerPos(playerid,1187.6067,-1352.2944,13.5695)
case 8: SetPlayerPos(playerid,1763.3704,-1476.3431,13.4946)
case 9: SetPlayerPos(playerid,2349.6953,-1756.2948,13.5469)
case 10: SetPlayerPos(playerid,2845.3950,-1107.4475,24.4182)
case 11: SetPlayerPos(playerid,769.2012,-1327.3502,13.5469)
case 12: SetPlayerPos(playerid,769.2012,-1327.3502,13.5469)
}
}
}
switch(dialogid)
{
case DIALOG_OL:
{
if(response)
{
case 0: SetPlayerPos(playerid,1453.4049,-1028.1321,23.8281)
case 1: SetPlayerPos(playerid,1453.4049,-1028.1321,23.8281)
case 2: SetPlayerPos(playerid,1453.4049,-1028.1321,23.8281)
case 3: SetPlayerPos(playerid,1217.1610,-927.5590,42.8858)
case 4: SetPlayerPos(playerid,1474.4646,-1738.8673,13.5469)
case 5: SetPlayerPos(playerid,1363.3765,-1276.8026,13.5469)
case 6: SetPlayerPos(playerid,1886.8024,-1169.0966,23.9904)
case 7: SetPlayerPos(playerid,1085.8148,-1704.7716,13.5469)
case 8: SetPlayerPos(playerid,567.6815,-1845.5068,5.0693)
case 9: SetPlayerPos(playerid,1827.7596,-1687.0818,13.5469)
case 10: SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938)
case 11: SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938) //ZAMJENI LOKACIJU
case 12: SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938) //ZAMJENI LOKACIJU
case 13: SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938) //ZAMJENI LOKACIJU
case 14: SetPlayerPos(playerid,337.4672,-1526.0035,33.2851)
}
}
}
return 1;
}
PHP код:
C:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP\Server\pawno\include\sscanf2.inc(203) : error 017: undefined symbol "SSCANF_OnGameModeInit"
PHP код:
CMD:setlevel(playerid,params[])
{
new id,level,msg[128],msg2[128],name[MAX_PLAYER_NAME];
if(IsPlayerAdmin(playerid))
{
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba /setlevel [id/name] [level] !");
else if(level > 5) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Najveci admin level je 5!");
else
{
PlayerInfo[id][pAdmin] = level;
format(msg,sizeof(msg),"Cestitamo! Sada ste admin level %d!");
SendClientMessage(id,COLOR_GREEN,msg);
GetPlayerName(id,name,sizeof(name)); // error here line 203
format(msg2,sizeof(msg2),"[RMT:RP]:Uspijesno ste postavili Admina igracu %s ,sa levelom %d!",name,level);
SendClientMessage(playerid,COLOR_GREEN,msg2);
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"[RMT:RP]Morate biti Admin da koristis ovu komandu!");
}
return 1;
}
NOTe: i have more dialogs above 1 i sent