16.03.2013, 23:05
How can I create licenses? For Weapons and Vehicles?
Thanks in advance!
Thanks in advance!
new weplic[MAX_PLAYERS];
CMD:buylic(playerid, params[])
{
weplic[playerid] = 1;
dini_IntSet(the-playerid-file, "weplic", 1);
return 1;
}
new modelid=GetVehicleModel(GetPlayerVehicleID(playerid));
if(newstate==PLAYER_STATE_DRIVER)
{
if(modelid==582 || modelid==488 || modelid==438 || modelid==426 || modelid=445)
{
if(carlic[playerid]==0)
{
}
}
}
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : warning 211: possibly unintended assignment
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : error 022: must be lvalue (non-constant)
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : warning 215: expression has no effect
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : error 001: expected token: ";", but found ")"
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : error 029: invalid expression, assumed zero
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
new modelid=GetVehicleModel(GetPlayerVehicleID(playerid));
if(modelid==582 || modelid==488 || modelid==438 || modelid==426 || modelid=445)
{
if(carlic[playerid]==0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,red,"You have no drivers license");
}
}
}
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : warning 211: possibly unintended assignment
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : error 022: must be lvalue (non-constant)
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : warning 215: expression has no effect
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : error 001: expected token: ";", but found ")"
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : error 029: invalid expression, assumed zero
C:\Users\DanielsoN\Desktop\SAMP Server\gamemodes\tutorial.pwn(588) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.