SA-MP Forums Archive
How to do this properly - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to do this properly (/showthread.php?tid=133432)



How to do this properly - Torran - 12.03.2010

I know i already have a topic about this but i cant find it.
Anyway how would i do this?

pawn Код:
PlayerInfo[playerid][Year] = inputtext;
By that code you should get what i want, If not then,
Whatever the player types in dialog im trying to save to there file,
But i get this error:
Код:
C:\Users\Torran\Desktop\tRoleplay\gamemodes\tRoleplay.pwn(197) : error 006: must be assigned to an array
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
A user on this forum told me how to do it correctly but ive lost that topic,
Anyone know how i would do it?


Re: How to do this properly - Fj0rtizFredde - 12.03.2010

Try:
pawn Код:
PlayerInfo[playerid][Year] = strlen(inputtext);



Re: How to do this properly - Torran - 12.03.2010

Works ty