[Help]4 Errors, Warn command.
#1

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);
Reply
#2

Show us lines 26600 to 26615.
Reply
#3

Код:
		    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");
Reply
#4

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");
Reply
#5

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
Reply
#6

So do what it says put ; there -.-
Reply
#7

I am from Croatian. I do not understand you say, a ****** translator something shit. Jel I can queue up to be, we urgently
Reply
#8

So go to the forum and the your own language -.-
Reply
#9

You are better workers in the Pawn
Reply
#10

thimo said this ''Dakle, to što piše stavite, tamo - -.''

Note: Translated :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)