need some help too - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need some help too (
/showthread.php?tid=91493)
need some help too -
The_Tough - 15.08.2009
dcmd_nuke(playerid,params[]) {
new level;
level = dini_Get(PlayerFile,"Level") if(level >= 1) // it must be in the same array thats error,how can I fix it,apriciated

{
new id = (IsNumeric(params)) ? strval(params) : GetPlayerId(params);
new pName[MAX_PLAYER_NAME],ppunished[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z,string[100];
if(
Re: need some help too -
The_Tough - 15.08.2009
anyone




Re: need some help too -
Jese - 15.08.2009
First of all, don't double post..
what you want to get? what errors you got?
Re: need some help too -
Abernethy - 15.08.2009
Dude, please use pastebin.com and
Re: need some help too -
The_Tough - 15.08.2009
nothing let it go...if I dont double post nobody pays attention at topic
Re: need some help too -
Robbin237 - 15.08.2009
Look, you post codes which are half or not complete. Second of all, we DO see your topic. You just need some patietence, and wait for someone to look at it. Use [pawn] tags to put your code in, to make it look nice. Also provide us with a little bit more information, like what you want to achieve and what errors you get.
Re: need some help too -
dice7 - 15.08.2009
dini_Get returns a string, the size of 256 cells
Use dini_Int to extract the integer from "level"
Re: need some help too -
SpiderPork - 15.08.2009
pawn Код:
dcmd_nuke(playerid,params[])
{
if(dini_Get(PlayerFile, "Level") >= 1)
{
// All the stuff
}
}
Re: need some help too -
dice7 - 15.08.2009
Quote:
Originally Posted by SpiderPork
pawn Код:
dcmd_nuke(playerid,params[]) { if(dini_Get(PlayerFile, "Level") >= 1) { // All the stuff } }
|
Like I said, you can't use dini_Get to get integers
Re: need some help too -
The_Tough - 30.08.2009
Its ok,now I created all my admin system by doing this on login
PlayerData[playerid][Level] = dini_Int(file,"Level");
etc.