2 questions
#1

Hi!

How to fix this?

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(114) : error 017: undefined symbol "PlayerName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line:

PHP код:
format(str128"System: %s [ID %d] has set %s [ID %d] gangsterlevel to %s."PlayerName(playerid), playeridPlayerName(id), idglevel); 
2. question after error is fixed, cause my server won't start!
Reply
#2

The compiler doesn't know what "PlayerName" is. You have to define it.
Reply
#3

pawn Код:
new myname[24], targetname[24];
GetPlayerName(playerid, myname, 24);
GetPlayerName(Target, targetname, 24);
Or you need to make a stock with the PlayerName function.
Reply
#4

How to define it rightly?
Reply
#5

https://sampwiki.blast.hk/wiki/GetPlayerName
Reply
#6

pawn Код:
stock PlayerName(playerid)
{
     new pName[25];
     GetPlayerName(playerid, pName, sizeof(pName));
     return pName;
}
Reply
#7

Ok, here is question 2! Look what I wrote in the chat in the picture!
Reply
#8

About that second problem. Drop your OnPlayerText code here.
Reply
#9

Quote:
Originally Posted by samtey
Посмотреть сообщение
Ok, here is question 2! Look what I wrote in the chat in the picture!
Send me the code that it's being green and I'll be able to help you
Reply
#10

Dude, can can check my FS. You can learn from it. I was doing the same thing on it.

https://sampforum.blast.hk/showthread.php?tid=273863
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)