Player Statistics
#1

I get this:
Quote:

C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1955) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1955) : warning 204: symbol is assigned a value that is never used: "coordsstring"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1954) : warning 204: symbol is assigned a value that is never used: "warns"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1953) : warning 204: symbol is assigned a value that is never used: "account"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1952) : warning 204: symbol is assigned a value that is never used: "level"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1951) : warning 204: symbol is assigned a value that is never used: "arrests"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1950) : warning 204: symbol is assigned a value that is never used: "crimes"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1949) : warning 204: symbol is assigned a value that is never used: "cash"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1947) : warning 203: symbol is never used: "playerid"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1947 -- 1957) : error 021: symbol already defined: "format"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1947 -- 1965) : warning 203: symbol is never used: "levelcost"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1947 -- 1965) : warning 203: symbol is never used: "levelexp"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

For this::


Код:
ShowPlayerStats(playerid,targetid) [COLOR="rgb(255, 0, 255)"]LINE 1947[/COLOR]
{ [COLOR="rgb(255, 0, 255)"]LINE 1948[/COLOR]
	new cash =  GetPlayerMoney(targetid);[COLOR="rgb(255, 0, 255)"]LINE 1949[/COLOR]
	new crimes = PlayerInfo[targetid][pCrimes];[COLOR="rgb(255, 0, 255)"]LINE 1950[/COLOR]
	new arrests = PlayerInfo[targetid][pArrests];[COLOR="rgb(255, 0, 255)"]LINE 1951[/COLOR]
	new level = PlayerInfo[targetid][pLevel];[COLOR="rgb(255, 0, 255)"]LINE 1952[/COLOR]
	new account = PlayerInfo[targetid][pName];[COLOR="rgb(255, 0, 255)"]LINE 1953[/COLOR]
	new warns = PlayerInfo[targetid][pWarns];[COLOR="rgb(255, 0, 255)"]LINE 1954[/COLOR]
	new coordsstring[268], str[3000]; LINE 1955
	}
		format(coordsstring, sizeof(coordsstring),"%s -	Money $%d | Level: %d | Crimes %d | Arrests %d\n", GetPlayerNameEx(targetid), cash, level, crimes, arrests);[COLOR="rgb(255, 0, 255)"]LINE 1957[/COLOR]
		strcat(str, coordsstring);[COLOR="rgb(255, 0, 255)"]LINE 1958[/COLOR]
		format(coordsstring, sizeof(coordsstring),"| Warnings %d | Admin level %d\n", warns, adminlevelname);[COLOR="rgb(255, 0, 255)"]LINE 1959[/COLOR]
		strcat(str, coordsstring);[COLOR="rgb(255, 0, 255)"]LINE 1960[/COLOR]
	}
		ShowPlayerDialog(playerid, DIALOG_SHOW_INFO, DIALOG_STYLE_MSGBOX, "{33AA33}Player Statistics Information", str, "Ok", "Close");[COLOR="rgb(255, 0, 255)"]LINE 1961[/COLOR]
	}
}
Reply


Messages In This Thread
Player Statistics - by MrCallum - 28.12.2014, 12:06
Re: Player Statistics - by UltraScripter - 28.12.2014, 12:09
Re: Player Statistics - by MrCallum - 28.12.2014, 12:16
Re: Player Statistics - by Alvord - 28.12.2014, 12:28
Re: Player Statistics - by gdkparadox - 28.12.2014, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)