#1

pawn Код:
strmid(PlayerInfo[playerid][pPass], inputtext, 0, strlen(inputtext), 255);
Errors
Код:
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(290) : warning 213: tag mismatch
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(290) : error 001: expected token: ",", but found "["
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(290) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(290) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(290) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(290) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

Код:
format(PlayerInfo[playerid][pPass],256,"%s",inputtext);
Reply
#3

didn't help
Код:
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(292) : warning 213: tag mismatch
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(292) : error 001: expected token: ",", but found "["
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(292) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(292) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(292) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\Gen RP.pwn(292) : fatal error 107: too many error messages on one line

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

Is PlayerInfo[playerid][pPass] a string?
Reply
#5

Quote:
Originally Posted by GTAguillaume
Is PlayerInfo[playerid][pPass] a string?
in the enum i put it was pPass[255],
Reply
#6

Quote:
Originally Posted by changeme
Quote:
Originally Posted by GTAguillaume
Is PlayerInfo[playerid][pPass] a string?
in the enum i put it was pPass[255],
Try to change it to 256.
Reply
#7

Quote:
Originally Posted by GTAguillaume
Quote:
Originally Posted by changeme
Quote:
Originally Posted by GTAguillaume
Is PlayerInfo[playerid][pPass] a string?
in the enum i put it was pPass[255],
Try to change it to 256.
no good.Please help meh
Reply
#8

How do you have the enum and PlayerInfo declared ?
Reply
#9

Quote:
Originally Posted by dice7
How do you have the enum and PlayerInfo declared ?
enum pStats
{
pPass[256],
pMoney,
pActivity,
pAdmin,
pRegistered,
pGang,
pFaction,
pGangMember,
pGangLeader,
pFactionMember,
pFactionLeader,
pGunSkills,
pGun,
pGun2,
pGun3,
pGun4,
pGunAmmo,
pGunAmmo2,
pGunAmmo3,
pGunAmmo4,
pCarLicense,
pFlyingLicense,
};
new PlayerInfo[pStats];
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)