SA-MP Forums Archive
help - 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)
+--- Thread: help (/showthread.php?tid=626579)



help - AndreaSanchez - 17.01.2017

help please)

PHP код:
            Newreg[playerid] = true;
            
mysql_format(mysqlquerysizeof(query), "INSERT INTO `players` (`ID`, `User`, `Pass`, `IP`, `Admin`, `SkinID`, `AccountLocked`, `AccountBanned`, `BanningAdmin`, `BannedReason`, `MoneyHand`, `MoneyBank`,`Health`, `Armour`, `LastActivity`, `WeaponSlot1`, `WepSlotAmmo1`, `WeaponSlot2`, `WepSlotAmmo2`, `WeaponSlot3`, `WepSlotAmmo3`, `WeaponSlot4`, `WepSlotAmmo4`, `WeaponSlot5`, `WepSlotAmmo5`) VALUES ('', '%e', '%s', '%s', 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 5000, 0, 0, 0, 100.0, 0.0, 0, 0), GetUserName(playerid), Player[playerid][Pass], IP[playerid]); 
PHP код:
C:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(210) : error 075input line too long (after substitutions)
C:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(211) : error 037invalid string (possibly non-terminated string)
C:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(211) : error 017undefined symbol "INSERT"
C:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(211) : error 017undefined symbol "INTO"
C:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(211) : fatal error 107too many error messages on one line 



Re: help - FaLLenGirL - 17.01.2017

Your line is too long.
That means your string is to small.
Increase the string value. xD


Re: help - Yaa - 17.01.2017

Quote:
Originally Posted by FaLLenGirL
Посмотреть сообщение
Your line is too long.
That means your string is to small.
Increase the string value. xD


check out your code

you forgot -> " also line is too long

PHP код:
Newreg[playerid] = true
mysql_format(mysqlquerysizeof(query), "INSERT INTO `players` (`ID`, `User`, `Pass`, `IP`, `Admin`, `SkinID`, `AccountLocked`, `AccountBanned`, `BanningAdmin`, `BannedReason`, `MoneyHand`, `MoneyBank`,`Health`, `Armour`, `LastActivity`, `WeaponSlot1`, `WepSlotAmmo1`, `WeaponSlot2`, `WepSlotAmmo2`, `WeaponSlot3`, `WepSlotAmmo3`, `WeaponSlot4`, `WepSlotAmmo4`, `WeaponSlot5`, `WepSlotAmmo5`)\
 VALUES ('', '%e', '%s', '%s', 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 5000, 0, 0, 0, 100.0, 0.0, 0, 0)"
GetUserName(playerid), Player[playerid][Pass], IP[playerid]);