16.03.2013, 22:16
Hi.I need to fix that erors.Lines
Command:
Prison Spawns:
pawn Код:
C:\Users\Teo\Desktop\Za Script\GameModovi\*\gamemodes\DREAMCAST.pwn(42614) : error 017: undefined symbol "gPr"
C:\Users\Teo\Desktop\Za Script\GameModovi\*\gamemodes\DREAMCAST.pwn(42615) : error 017: undefined symbol "isonSpawns"
C:\Users\Teo\Desktop\Za Script\GameModovi\*\gamemodes\DREAMCAST.pwn(42615) : warning 215: expression has no effect
C:\Users\Teo\Desktop\Za Script\GameModovi\*\gamemodes\DREAMCAST.pwn(42615) : error 001: expected token: ";", but found "]"
C:\Users\Teo\Desktop\Za Script\GameModovi\*\gamemodes\DREAMCAST.pwn(42615) : error 029: invalid expression, assumed zero
C:\Users\Teo\Desktop\Za Script\GameModovi\*\gamemodes\DREAMCAST.pwn(42615) : fatal error 107: too many error messages on one line
pawn Код:
new randomss;
randomss = random(sizeof(gPrisonSpawns));
Line 614: SetPlayerPos(playa, gPrisonSpawns[randomss][0], gPrisonSpawns[randomss][1], gPrisonSpawns[randomss][2], gPrisonSpawns[randomss][3], gPrisonSpawns[randomss][4], gPrisonSpawns[randomss][5], gPrisonSpawns[randomss][6], gPrisonSpawns[randomss][7], gPrisonSpawns[randomss][8], gPrisonSpawns[randomss][7], gPrisonSpawns[randomss][8], gPrisonSpawns[randomss][9], gPrisonSpawns[randomss][10], gPrisonSpawns[randomss][11], gPrisonSpawns[randomss][11], gPrisonSpawns[randomss][10], gPrisonSpawns[randomss][11], gPrisonSpawns[randomss][12], gPrisonSpawns[randomss][13], gPrisonSpawns[randomss][13], gPrisonSpawns[randomss][14], gPrisonSpawns[randomss][15], gPrisonSpawns[randomss][16], gPrisonSpawns[randomss][17], gPrisonSpawns[randomss][18], gPrisonSpawns[randomss][19], gPrisonSpawns[randomss][20], gPrisonSpawns[randomss][21], gPrisonSpawns[randomss][22], gPrisonSpawns[randomss][23], gPrisonSpawns[randomss][24], gPrisonSpawns[randomss][25], gPrisonSpawns[randomss][26], gPrisonSpawns[randomss][27], gPrisonSpawns[randomss],gPrisonSpawns[randomss][29], gPrisonSpawns[randomss][30], gPrisonSpawns[randomss][31], gPrisonSpawns[randomss][32], gPrisonSpawns[randomss][33], gPrisonSpawns[randomss][34], gPrisonSpawns[randomss][35]gPrisonSpawns[randomss][29], gPrisonSpawns[randomss][30], gPrisonSpawns[randomss][31], gPrisonSpawns[randomss][32], gPrisonSpawns[randomss][33], gPrisonSpawns[randomss][34], gPrisonSpawns[randomss][35)gPrisonSpawns[randomss][29], gPrisonSpawns[randomss][30], gPrisonSpawns[randomss][31], gPrisonSpawns[randomss][32], gPrisonSpawns[randomss][33], gPrisonSpawns[randomss][34], gPrisonSpawns[randomss][35]);
pawn Код:
//-----------------------------------[PRISON]-------------------------------------------------------------------------
if(strcmp(cmd, "/prison", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}/prison [ID/Ime na Igrac] [casa] [pricina]");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}/prison [ID/Ime na Igrac] [casa] [pricina]");
return 1;
}
format(string, sizeof(string), "{37F906}INFO:{FFFFFF}Go zatvorivte %s.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{37F906}INFO:{FFFFFF}Admini %s ve zatvori vo Demir Hisar %d casa, Pricina: %s.", sendername, money, (result));
SendClientMessage(playa, COLOR_WHITE, string);
ResetPlayerWeapons(playa);
PlayerInfo[playa][pJailed] = 2;
PlayerInfo[playa][pJailTime] = money*3600;
SetPlayerInterior(playa, 0);
PlayerInfo[playa][pInt] = 0;
new randomss;
randomss = random(sizeof(gPrisonSpawns));
SetPlayerPos(playa, gPrisonSpawns[randomss][0], gPrisonSpawns[randomss][1], gPrisonSpawns[randomss][2], gPrisonSpawns[randomss][3], gPrisonSpawns[randomss][4], gPrisonSpawns[randomss][5], gPrisonSpawns[randomss][6], gPrisonSpawns[randomss][7], gPrisonSpawns[randomss][8], gPrisonSpawns[randomss][7], gPrisonSpawns[randomss][8], gPrisonSpawns[randomss][9], gPrisonSpawns[randomss][10], gPrisonSpawns[randomss][11], gPrisonSpawns[randomss][11], gPrisonSpawns[randomss][10], gPrisonSpawns[randomss][11], gPrisonSpawns[randomss][12], gPrisonSpawns[randomss][13], gPrisonSpawns[randomss][13], gPrisonSpawns[randomss][14], gPrisonSpawns[randomss][15], gPrisonSpawns[randomss][16], gPrisonSpawns[randomss][17], gPrisonSpawns[randomss][18], gPrisonSpawns[randomss][19], gPrisonSpawns[randomss][20], gPrisonSpawns[randomss][21], gPrisonSpawns[randomss][22], gPrisonSpawns[randomss][23], gPrisonSpawns[randomss][24], gPrisonSpawns[randomss][25], gPrisonSpawns[randomss][26], gPrisonSpawns[randomss][27], gPrisonSpawns[randomss],gPrisonSpawns[randomss][29], gPrisonSpawns[randomss][30], gPrisonSpawns[randomss][31], gPrisonSpawns[randomss][32], gPrisonSpawns[randomss][33], gPrisonSpawns[randomss][34], gPrisonSpawns[randomss][35]gPrisonSpawns[randomss][29], gPrisonSpawns[randomss][30], gPrisonSpawns[randomss][31], gPrisonSpawns[randomss][32], gPrisonSpawns[randomss][33], gPrisonSpawns[randomss][34], gPrisonSpawns[randomss][35)gPrisonSpawns[randomss][29], gPrisonSpawns[randomss][30], gPrisonSpawns[randomss][31], gPrisonSpawns[randomss][32], gPrisonSpawns[randomss][33], gPrisonSpawns[randomss][34], gPrisonSpawns[randomss][35]);
format(string, sizeof(string), "(DC)Server: %s e zatvoren vo Demir Hisar %d casa od Admin %s, Pricina: %s", giveplayer, money, sendername, (result));
SendClientMessageToAll(COLOR_LIGHTRED,string);
printf("%s",string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne ste ovlasteni za ovaa komanda!");
}
}
return 1;
}
pawn Код:
new Float:gPrisonSpawns[36][36] = {
{208.8690,1803.2267,-23.2555},
{207.7442,1799.2058,-23.2555},
{207.2447,1794.8662,-23.2555},
{208.9594,1790.4700,-23.2555},
{208.2533,1786.1917,-23.2555},
{208.0717,1782.4370,-23.2555},
{207.5909,1777.6335,-23.2555},
{208.3633,1773.6008,-23.2555},
{208.0363,1769.1930,-23.2555},
{208.0652,1769.3052,-19.2372},
{208.8162,1773.6361,-19.2372},
{209.1796,1778.0342,-19.2372},
{207.9285,1782.2838,-19.2372},
{207.9165,1785.7388,-19.2372},
{208.2841,1790.6897,-19.2372},
{208.3057,1795.0118,-19.2372},
{207.4932,1799.0226,-19.2372},
{207.6794,1803.5193,-19.2372},
{187.4932,1803.2803,-19.2372},
{187.4932,1803.2803,-19.2372},
{186.5121,1798.8956,-19.2372},
{187.5900,1794.6464,-19.2372},
{187.0754,1790.7888,-19.2372},
{186.4774,1786.5474,-19.2372},
{185.8178,1782.1265,-19.2372},
{187.0300,1777.5414,-19.2372},
{186.8318,1769.3831,-19.0160},
{187.2116,1803.4861,-23.2555},
{186.4105,1799.2941,-23.2555},
{187.0480,1795.2963,-23.2555},
{186.7238,1790.8600,-23.2555},
{186.9455,1785.8768,-23.2555},
{186.9563,1781.8087,-23.2555},
{187.0238,1777.4513,-23.2555},
{187.1951,1773.8418,-23.2555},
{187.0270,1769.9827,-23.2555}
};