small problem - affecting string to an array
#1

Hello all i have a small problem.
PHP код:
if(PlayerInfo[playerid][pFaction]==0PlayerInfo[playerid][pRank]="none"
the code above won't work.

Error message.
Quote:

C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 500) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Make sure that pRank is labeled as a string, like pRank [128] in the enum.
Reply
#3

Yes it is.

PHP код:
pRank[30
Reply
#4

You have to format it.
pawn Код:
if(PlayerInfo[playerid][pFaction]==0) format(PlayerInfo[playerid][pRank], 30, "none");
Reply
#5

Thanks for your support, it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)