undefined symbol "playerid"
#1

cant seem to fix this does anyone know the idea of it

Код:
C:\Users\Brandon\Desktop\IGRP\gamemodes\IG.pwn(2148) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\IGRP\gamemodes\IG.pwn(2148) : error 017: undefined symbol "playerid"
Код:
	for (new i = 0; i < APPROX_PLAYERS; i++)
	{
  		if(PlayerInfo[playerid][pFaction] != 6) return SendClientMessage(playerid, -1, "You are not in a faction.");
		{
			SetPlayerCheckpoint(i, RandomFire_X,RandomFire_Y,RandomFire_Z, 3.0);
			SendClientMessage(i, COLOR_LIGHTBLUE, "(INFO) A marker has been put on your GPS.");
		}
	}
Error line
Код:
if(PlayerInfo[playerid][pFaction] != 6) return SendClientMessage(playerid, -1, "You are not in a faction.");
Reply
#2

Read the error. Playerid was never defined. To have playerid there it has to be in a function where playerid is defined. In what callback is that?

Or was it mean't to use "i" where you check the faction of a player?
Reply
#3

there is a define. cant understand why it wont work.
Reply
#4

Fixed it.
Reply
#5

if(PlayerInfo[playerid][pFaction] != 6) return SendClientMessage(playerid, -1, "You are not in a faction.");


Change to

if(PlayerInfo[i][pFaction] != 6) return SendClientMessage(i, -1, "You are not in a faction.");



edit :

i'm sorru ! i don't see this

Quote:
Originally Posted by OpticKiller
Посмотреть сообщение
Fixed it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)