12.03.2013, 10:52
Hello, how do i check if the phone number is in use while buying a phone? I use MySQL and can't think of a way to check for the players that are offline.Anyone got ideas?
if(strcmp(PlayerInfo[i][PhoneNumber],tmp,true,6))
CMD:skambinti(playerid,params[])
{
new tmp[32];
if(sscanf(params,"d",tmp)) SendClientMessage(playerid,0xFF0000FF,"Naudojimas /skambinti [Telefono Numeris]");
else
{
foreach(new i:Player)
{
if(PlayerInfo[i][PhoneNumber]==tmp)
{
new LastNumber = 350000;
PlayerInfo[playerid][PhoneNumber]=LastNumber + 8417;
LastNumber = PlayerInfo[playerid][PhoneNumber];
C:\Users\Justas\Desktop\testserver 0.3x\gamemodes\rp.pwn(3060) : warning 213: tag mismatch
C:\Users\Justas\Desktop\testserver 0.3x\gamemodes\rp.pwn(3061) : warning 213: tag mismatch