[Help]4 Errors, Warn command. -
vannesenn - 18.01.2012
I need help from the best workers in pawn. We have 4 Erors the CLRP scripts. The command is warn. Thanks for your help.
Errors:
Код:
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : warning 219: local variable "Index" shadows a variable at a preceding level
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : error 012: invalid function call, not a valid address
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : warning 215: expression has no effect
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : warning 215: expression has no effect
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : error 001: expected token: ";", but found ")"
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : error 029: invalid expression, assumed zero
C:\Users\Silvio\Downloads\Classic Life RolePlay\gamemodes\CLRP.pwn(26609) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Line 26609:
Код:
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
Re: [Help]4 Errors, Warn command. -
Konstantinos - 18.01.2012
Show us lines 26600 to 26615.
Re: [Help]4 Errors, Warn command. -
vannesenn - 18.01.2012
Код:
format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
//warn cmd
dcmd_warn(playerid,params[]) {
if(PlayerInfo[playerid][pAdmin] >= 1) {
new tmp = strtok(params,Index);
new tmp2 = strtok(params,Index);
if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
new warned = strval(tmp), str[128];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
// if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
Re: [Help]4 Errors, Warn command. -
Konstantinos - 18.01.2012
You have used it many times. Try this
pawn Код:
dcmd_warn(playerid,params[]) {
if(PlayerInfo[playerid][pAdmin] >= 1) {
new Index2, tmp1 = strtok(params, Index2), tmp2 = strtok(params, Index2);
if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
new warned = strval(tmp), str[128];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
// if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
Re: [Help]4 Errors, Warn command. -
vannesenn - 18.01.2012
Now erupted Error
Код:
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26608) : error 012: invalid function call, not a valid address
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26608) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26608) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26608) : error 001: expected token: ";", but found ")"
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26608) : error 029: invalid expression, assumed zero
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26608) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Kao da su nepopravljivi Errori
Re: [Help]4 Errors, Warn command. -
thimo - 18.01.2012
So do what it says put ; there -.-
Re: [Help]4 Errors, Warn command. -
vannesenn - 18.01.2012
I am from Croatian. I do not understand you say, a ****** translator something shit. Jel I can queue up to be, we urgently
Re: [Help]4 Errors, Warn command. -
thimo - 18.01.2012
So go to the forum and the your own language -.-
Re: [Help]4 Errors, Warn command. -
vannesenn - 18.01.2012
You are better workers in the Pawn
Re: [Help]4 Errors, Warn command. -
niyaz - 20.03.2012
thimo said this ''Dakle, to što piše stavite, tamo - -.''
Note: Translated :P