need some help too
#1

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(
Reply
#2

anyone
Reply
#3

First of all, don't double post..
what you want to get? what errors you got?
Reply
#4

Dude, please use pastebin.com and
Код:
pawn Код:
code
Reply
#5

nothing let it go...if I dont double post nobody pays attention at topic
Reply
#6

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

dini_Get returns a string, the size of 256 cells
Use dini_Int to extract the integer from "level"
Reply
#8

pawn Код:
dcmd_nuke(playerid,params[])
{      
   if(dini_Get(PlayerFile, "Level") >= 1)
   {
     // All the stuff
   }
}
Reply
#9

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

Its ok,now I created all my admin system by doing this on login

PlayerData[playerid][Level] = dini_Int(file,"Level");

etc.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)