Search Results
Quote: Originally Posted by Pghpunkid VB6 != VB.net lol It was written in VB6 when I said that, I converted it to VB.NET later on
446
Try this pawn Code: dcmd_a(playerid,params[]){    new aText[128],aName[MAX_PLAYER_NAME],string[128];    if(pInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"You...
629
pawn Code: if(!sscanf(params,"s",aText)) should be pawn Code: if(sscanf(params,"s",aText))
629
Quote: Originally Posted by NewYorkRP I'm sure this could easily be done WITHOUT MySQL. (Just saves into your user file..) There's a DJSON version in the post...
439
Usually PRESSED(KEY_ACTION) works. You can't check for a specific key, but a key that has been assigned to the given action. The action key can be assigned to different keys for different people, but ...
99
Try this. pawn Код: dini_IntSet(string, "MatA", dini_Int(string, "MatA")+300);
72
pawn Код: sscanf(line, "p<.>is[/*insert size of pinfo[playerid][nombre] here */]s[/*insert size of pinfo[playerid][pass] here*/]iiiiiiiifffiii", pinfo[playerid][id], pinfo[playerid][nombre],...
144
The size of the string goes right behind the specifier. Example: pawn Код: new str[20];sscanf("hello there", "s[20]", str);
144
You must specify the string's size. http://forum.sa-mp.com/index.php?topic=145539.0 read the "Strings" section
144
Try this: pawn Код: dcmd_test(playerid,params[]) {    if(!strlen(params)) return SendClientMessage(playerid, red, "empty..");         new string[128];    new Float:x, Float:y, Float:z;  Â...
92
Just go to any page, there's an "edit" button. Example: https://sampwiki.blast.hk/wiki/My_page_name
205
It's not exactly what you did, your code will give errors: pawn Код: forward TextDrawKill( );public TextDrawKill( ){  TextDrawHideForPlayer(playerid,Command_Spam);//Where is playerid coming from?...
181
Do you need to do the second sscanfs? You could remove them and just set the int to 201001011200, unless it actually has a function that gets the date from somewhere. Secondly try adding prints to all...
278
The function searches for quotes (', ") in the provided string and removes them. Here's an example: Let's say you use this MySql query to get someone's user stuff: Код: SELECT * FROM users WHERE n...
105
Might work: pawn Код: stock BanCheck(playerid){    new pName[MAX_PLAYER_NAME], string[128];    GetPlayerName(playerid,pName,sizeof(pName));    format(pName, 128, "BANNED %s", pname);//Becaus...
128
pawn Код: public OnPlayerConnect(playerid){    TextDrawShowForPlayer(playerid, Command_Spam);    SetTimerEx("TextDrawKill", 10000, 0, "i", playerid);    return 1;}forward TextDrawKill(player...
181
You can't set strings like that, use format for that. pawn Code: if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) format(ctext, sizeof(ctext), vehName[GetVehicleModel(GetPlayerVehicleID(playerid))...
91
You should also want to check the server_log.txt, there might be an error there.
270
Or in the original file: pawn Код: forward GetgTeam(playerid);public GetgTeam(playerid)    return gTeam[playerid]; To get gTeam in the NPC script: pawn Код: public SomeCallback(playerid){  ...
123