18.02.2011, 11:44
pawn Код:
if(strcmp(cmd, "/elfogadmunka", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new nevasd[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
GetPlayerName(playerid, sendername, sizeof (sendername));
if(PlayerToPoint(2.0, playerid, -1536.2216,2564.1257,55.8359))
{
if(PlayerInfo[playerid][pJob] == 0) // Ъttisztitу
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Alбнrtad a kйt уrбs szerződйst йs elvбllaltad az Ъttisztнtу Munkбt!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ha letelt a kйt уra a /kilйpmunka parancsal tudsz kilйpni a munkбdbуl.");
PlayerInfo[playerid][pJob] = 21;
SetPlayerSkin(playerid, 16);
PlayerInfo[playerid][Munkaruha2] = 16;
PlayerInfo[playerid][vanmunka] = PlayerInfo[playerid][idoora];
format(stringx,sizeof(stringx), "[%d/%d/%d][%d:%d:%d] %s ъj munkбja : Ъttisztнtу",y,m,d,h,mi,s,nev);
LoOoG(stringx);
} else { SendClientMessage(playerid, COLOR_GRAD2, "Mбr van munkбd!"); }
}
else if(PlayerToPoint(2.0,playerid,-2170.1619,640.6637,1052.3817))
{
if(PlayerInfo[playerid][pJob] == 0) // Postбs
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Alбнrtad a kйt уrбs szerződйst йs elvбllaltad a Postбs Munkбt!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ha letelt a kйt уra a /kilйpmunka parancsal tudsz kilйpni a munkбdbуl.");
PlayerInfo[playerid][pJob] = 18;
SetPlayerSkin(playerid, 36);
PlayerInfo[playerid][Munkaruha2] = 36;
PlayerInfo[playerid][vanmunka] = PlayerInfo[playerid][idoora];
format(stringx,sizeof(stringx), "[%d/%d/%d][%d:%d:%d] %s ъj munkбja : Postбs",y,m,d,h,mi,s,nev);
LoOoG(stringx);
} else { SendClientMessage(playerid, COLOR_GRAD2, "Mбr van munkбd!"); }
}
else if(PlayerToPoint(2.0,playerid,-911.6236,2672.9419,42.3703))
{
if(PlayerInfo[playerid][pJob] == 0) // Halбsz
{
if(PlayerInfo[playerid][pLevel] >= 5) // Halбsz
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Alбнrtad a kйt уrбs szerződйst йs elvбllaltad a Halбsz Munkбt!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ha letelt a kйt уra a /kilйpmunka parancsal tudsz kilйpni a munkбdbуl.");
PlayerInfo[playerid][pJob] = 19;
PlayerInfo[playerid][vanmunka] = PlayerInfo[playerid][idoora];
format(stringx,sizeof(stringx), "[%d/%d/%d][%d:%d:%d] %s ъj munkбja : Halбsz",y,m,d,h,mi,s,nev);
LoOoG(stringx);
} else { SendClientMessage(playerid, COLOR_GRAD2, "A munka felvйtelйhez 5цs szint szьksйges!"); }
} else { SendClientMessage(playerid, COLOR_GRAD2, "Mбr van munkбd!"); }
}
else if(PlayerToPoint(2.0,playerid,-948.7736,2753.1204,46.5522))
{
if(PlayerInfo[playerid][pJob] == 0) // Cementszбllнtу
{
if(PlayerInfo[playerid][pLevel] >= 5) // Halбsz
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Alбнrtad a kйt уrбs szerződйst йs elvбllaltad a Cementszбllнtу Munkбt!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ha letelt a kйt уra a /kilйpmunka parancsal tudsz kilйpni a munkбdbуl.");
PlayerInfo[playerid][pJob] = 25;
SetPlayerSkin(playerid, 27);
PlayerInfo[playerid][Munkaruha2] = 27;
PlayerInfo[playerid][vanmunka] = PlayerInfo[playerid][idoora];
format(stringx,sizeof(stringx), "[%d/%d/%d][%d:%d:%d] %s ъj munkбja : Cementszбllнtу",y,m,d,h,mi,s,nev);
LoOoG(stringx);
} else { SendClientMessage(playerid, COLOR_GRAD2, "A munka felvйtelйhez 5цs szint szьksйges!"); }
} else { SendClientMessage(playerid, COLOR_GRAD2, "Mбr van munkбd!"); }
}
else if(PlayerToPoint(2.0,playerid,364.8372,-5.6622,1001.8516))
{
if(PlayerInfo[playerid][pJob] == 0) // Eladу
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Alбнrtad a kйt уrбs szerződйst йs elvбllaltad a Bolti Munkбt!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ha letelt a kйt уra a /kilйpmunka parancsal tudsz kilйpni a munkбdbуl.");
PlayerInfo[playerid][pJob] = 26;
SetPlayerSkin(playerid, 155);
PlayerInfo[playerid][Munkaruha2] = 155;
PlayerInfo[playerid][vanmunka] = PlayerInfo[playerid][idoora];
format(stringx,sizeof(stringx), "[%d/%d/%d][%d:%d:%d] %s ъj munkбja : Bolti eladу",y,m,d,h,mi,s,nev);
LoOoG(stringx);
} else { SendClientMessage(playerid, COLOR_GRAD2, "Mбr van munkбd!"); }
}
}
return 1;
}
if(strcmp(cmd, "/kilйpmunka", true) == 0 || strcmp(cmd, "/kilepmunka", true) == 0)
{
if(IsPlayerConnected(playerid))
Код:
C:\Documents and Settings\atesz\Dokumentumok\Beйrkezett fбjlok\palorp(1).pwn(4184) : warning 208: function with tag result used before definition, forcing reparse C:\Documents and Settings\atesz\Dokumentumok\Beйrkezett fбjlok\palorp(1).pwn(280) : error 021: symbol already defined: "nev" C:\Documents and Settings\atesz\Dokumentumok\Beйrkezett fбjlok\palorp(1).pwn(1670) : error 028: invalid subscript (not an array or too many subscripts): "nev" C:\Documents and Settings\atesz\Dokumentumok\Beйrkezett fбjlok\palorp(1).pwn(1670) : warning 215: expression has no effect C:\Documents and Settings\atesz\Dokumentumok\Beйrkezett fбjlok\palorp(1).pwn(1670) : error 001: expected token: ";", but found "]" C:\Documents and Settings\atesz\Dokumentumok\Beйrkezett fбjlok\palorp(1).pwn(1670) : error 029: invalid expression, assumed zero C:\Documents and Settings\atesz\Dokumentumok\Beйrkezett fбjlok\palorp(1).pwn(1670) : fatal error 107: too many error messages on one line
pawn Код:
stock Torol(playerid)
{
TextDrawHideForPlayer(playerid,teszt[playerid]);
TextDrawDestroy(teszt[playerid]);
TextDrawHideForPlayer(playerid,nev[playerid]);
TextDrawDestroy(nev[playerid]);
TextDrawHideForPlayer(playerid,teszt2[playerid]);
TextDrawDestroy(teszt2[playerid]);
TextDrawHideForPlayer(playerid,tortenetx[playerid]);
TextDrawDestroy(tortenetx[playerid]);
TextDrawHideForPlayer(playerid,teszt3[playerid]);
TextDrawDestroy(teszt3[playerid]);
TextDrawHideForPlayer(playerid,nem[playerid]);
TextDrawDestroy(nem[playerid]);
TextDrawHideForPlayer(playerid,teszt4[playerid]);
TextDrawDestroy(teszt4[playerid]);
TextDrawHideForPlayer(playerid,skinx[playerid]);
TextDrawDestroy(skinx[playerid]);
TextDrawHideForPlayer(playerid,teszt5[playerid]);
TextDrawDestroy(teszt5[playerid]);
TextDrawHideForPlayer(playerid,kor[playerid]);
TextDrawDestroy(kor[playerid]);
TextDrawHideForPlayer(playerid,teszt6[playerid]);
TextDrawDestroy(teszt6[playerid]);
TextDrawHideForPlayer(playerid,falu[playerid]);
TextDrawDestroy(falu[playerid]);
TextDrawHideForPlayer(playerid,teszt7[playerid]);
TextDrawDestroy(teszt7[playerid]);
TextDrawHideForPlayer(playerid,tutorialtext[playerid]);
TextDrawDestroy(tutorialtext[playerid]);
PlayerFelengedve(playerid,1);
KillTimer(texttimer[playerid]);
return 1;
Thank you in advance!!