[Help] ladmin4v2
#1

Ok so bacialy when i register everything works fine then when i exit the game whoever gets my old id becomes my admin level and i dont have admin no more , so i posted asking if i could set players levels to 0 on connect like this:

PlayerInfo[playerid][AdminLevel] = 0;

but i get the following errors:

Код:
C:\Documents and Settings\Chris\Desktop\Stunt City\gamemodes\NewServer.pwn(200) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Chris\Desktop\Stunt City\gamemodes\NewServer.pwn(200) : warning 215: expression has no effect
C:\Documents and Settings\Chris\Desktop\Stunt City\gamemodes\NewServer.pwn(200) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Chris\Desktop\Stunt City\gamemodes\NewServer.pwn(200) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Chris\Desktop\Stunt City\gamemodes\NewServer.pwn(200) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
(I put that in onplayerconnect)







So could someone possibly help me its ladmin4v2 thanks
Reply
#2

Please post your Lines -.-
Reply
#3

Код:
public OnPlayerConnect(playerid)
{
  SendClientMessage(playerid, 0xAA3333AA, "**Welcome To Stunt City V.1 (Beta)**");
  SendClientMessage(playerid, 0x33AA33AA, "[INFO] Hacking Is Not Allowedl");
  SendClientMessage(playerid, 0xAA3333AA, "Owned/Coded/Mapped By [mad]mlk");
  SendClientMessage(playerid, 0x33AA33AA, "[HELP] Type /car For A car And /stunt For Stunts.");
  SendClientMessage(playerid, 0xAA3333AA, "Check Out: www.stuntcity.co.cc");
  GameTextForPlayer(playerid, "Welcome to Stunt City V.1",5000,3);
  TextDrawShowForPlayer(playerid, weburl);
  EnableStuntBonusForAll(playerid);
  PlayerInfo[playerid][AdminLevel] = 0;
  
  

	return 1;
}
Reply
#4

pawn Код:
enum PlayerData
{
AdminLevel
}
pawn Код:
new PlayerInfo[MAX_PLAYERS][PlayerData];
Ask in the Ladmin thread next time.
Reply
#5

Quote:
Originally Posted by еddy
pawn Код:
enum PlayerData
{
AdminLevel
}
pawn Код:
new PlayerInfo[MAX_PLAYERS][PlayerData];
Ask in the Ladmin thread next time.
Where to put?
Reply
#6

at the top
Reply
#7

pawn Код:
#include <a_samp>

enum PlayerData
{
AdminLevel
}

new PlayerInfo[MAX_PLAYERS][PlayerData];

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xAA3333AA, "**Welcome To Stunt City V.1 (Beta)**");
SendClientMessage(playerid, 0x33AA33AA, "[INFO] Hacking Is Not Allowedl");
SendClientMessage(playerid, 0xAA3333AA, "Owned/Coded/Mapped By [mad]mlk");
SendClientMessage(playerid, 0x33AA33AA, "[HELP] Type /car For A car And /stunt For Stunts.");
SendClientMessage(playerid, 0xAA3333AA, "Check Out: http://www.stuntcity.co.cc[url=http://][/url]");
GameTextForPlayer(playerid, "Welcome to Stunt City V.1",5000,3);
TextDrawShowForPlayer(playerid, weburl);
EnableStuntBonusForAll(playerid);
PlayerInfo[playerid][AdminLevel] = 0;
return 1;
}
Take a look at it before copying and pasting without learning anything.
Reply
#8

thanks guys, worked the treat .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)