SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 290
Search took 0.01 seconds.
Search: Posts Made By: Cerealguy
Forum: Scripting Help 22/12/2016, 05:39 PM
Replies: 5
Views: 540
Posted By Cerealguy
Respuesta: Format Code problems

use format and strcat!

https://wiki.sa-mp.com/wiki/Strcat
Forum: Scripting Help 21/12/2016, 12:58 PM
Replies: 2
Views: 259
Posted By Cerealguy
Respuesta: dynamic vehicle plates

https://wiki.sa-mp.com/wiki/Attach3DTextLabelToVehicle
Forum: Scripting Help 15/12/2016, 04:52 PM
Replies: 3
Views: 294
Posted By Cerealguy
Respuesta: sql file

http://wiki.sa-mp.com/wiki/Db_query
http://forum.sa-mp.com/showthread.php?t=262417

Googogo read this!!
Forum: Scripting Help 15/12/2016, 04:17 PM
Replies: 4
Views: 257
Posted By Cerealguy
Respuesta: Error !!!!

Check my last comment i EDIT!
Forum: Scripting Help 15/12/2016, 04:12 PM
Replies: 4
Views: 257
Posted By Cerealguy
Respuesta: Error !!!!

wtf really 99999?, 50 is much more than enough, and no need 3 string use one

fix: REP++

forward BangDiemSoTextDraw(playerid);
public BangDiemSoTextDraw(playerid)
{
for(new x = 0; x <= 2;...
Forum: Scripting Help 14/12/2016, 09:31 PM
Replies: 6
Views: 285
Posted By Cerealguy
Respuesta: error 035: argument type mismatch (argument 2)

Oh friend I had not noticed that the function was badly written, and regarding the array I have a condition so that it does not exceed the maximum in create rooftop command
Forum: Scripting Help 14/12/2016, 09:16 PM
Replies: 6
Views: 285
Posted By Cerealguy
Respuesta: error 035: argument type mismatch (argument 2)

forward LoadRooftop();
public LoadRooftop()
{
queryresult = db_query(Database, "SELECT * FROM `ROOFTOP`");
new count = db_num_rows(queryresult);
if(count > 0)
{
new id, ftd[30];
...
Forum: Scripting Help 14/12/2016, 08:59 PM
Replies: 6
Views: 285
Posted By Cerealguy
Respuesta: error 035: argument type mismatch (argument 2)

new DBResult:queryresult;

forward LoadRooftop();
public LoadRooftop()
{
queryresult = db_query(Database, "SELECT * FROM `ROOFTOP`");
if(db_num_rows(queryresult) > 0)
{
new id;
...
Forum: Scripting Help 14/12/2016, 08:53 PM
Replies: 6
Views: 285
Posted By Cerealguy
error 035: argument type mismatch (argument 2)

id = db_get_field_int(queryresult, "RID");
Rooftop[id][EnterPos][0] = db_get_field_float(queryresult, "EnterX");
Rooftop[id][EnterPos][1] = db_get_field_float(queryresult, "EnterY");...
Forum: Scripting Help 08/12/2016, 11:32 PM
Replies: 10
Views: 717
Posted By Cerealguy
Respuesta: Re: argument type mismatch (argument 1)

thanks bro's!, fix.

stock GetPlayerID(playername[])
{
for(new i=GetPlayerPoolSize(); i != -1; i--)
{
if(strcmp(GetPlayerName(i), playername, true, strlen(playername)) == 0) return i;...
Forum: Scripting Help 08/12/2016, 08:15 PM
Replies: 10
Views: 717
Posted By Cerealguy
Respuesta: argument type mismatch (argument 1)

new targetid[MAX_PLAYER_NAME], reason[50];

if(sscanf(params, "s[24]s[50]", targetid, reason))
Forum: Scripting Help 08/12/2016, 07:12 PM
Replies: 10
Views: 717
Posted By Cerealguy
Question argument type mismatch (argument 1)

error 035: argument type mismatch (argument 1)

if(IsPlayerConnected(GetPlayerID(targetid))) // ERROR


stock GetPlayerID(playername[])
{
for(new i=GetPlayerPoolSize(); i != -1; i--)
{
...
Forum: Scripting Help 08/12/2016, 03:27 PM
Replies: 5
Views: 612
Posted By Cerealguy
Forum: Scripting Help 08/12/2016, 02:02 AM
Replies: 5
Views: 612
Posted By Cerealguy
unban cmd

CMD:unban(playerid, params[])
{
if(pInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid))
{
new Query[128], targetid[MAX_PLAYER_NAME];
if(sscanf(params, "s[24]", targetid)) return...
Forum: Scripting Help 05/12/2016, 09:52 PM
Replies: 4
Views: 430
Posted By Cerealguy
Forum: Scripting Help 05/12/2016, 07:55 PM
Replies: 4
Views: 430
Posted By Cerealguy
Respuesta: Automatic unban problem

bandate example : 1480959291

unbandate example: 1480962891
Forum: Scripting Help 05/12/2016, 06:55 PM
Replies: 4
Views: 430
Posted By Cerealguy
Automatic unban problem

//----------------------------------------------
//-------------[CHECK BAN]--------------
new
retrieveName[MAX_PLAYER_NAME],
retrieveBannedBy[MAX_PLAYER_NAME],
retrieveReason[50],...
Forum: Scripting Help 05/12/2016, 05:46 PM
Replies: 2
Views: 271
Posted By Cerealguy
Respuesta: Damage in vehicles

check OnPlayerTakeDamage
Forum: Scripting Help 05/12/2016, 05:11 PM
Replies: 7
Views: 445
Posted By Cerealguy
Respuesta: Problem show dialog!

SOLVED, i add leave fuction and add code direct in OnPlayerConnect!
Forum: Scripting Help 05/12/2016, 04:52 PM
Replies: 7
Views: 445
Posted By Cerealguy
Respuesta: Re: Problem show dialog!

Thank you for trying to help me, but that will not help. Globalstring 400 is for testing i chaging later
Forum: Scripting Help 05/12/2016, 04:39 PM
Replies: 7
Views: 445
Posted By Cerealguy
Respuesta: Re: Problem show dialog!

i test with SendClientMessage and working
Forum: Scripting Help 05/12/2016, 04:35 PM
Replies: 7
Views: 445
Posted By Cerealguy
Respuesta: Re: Problem show dialog!

I did not notice it, but it is not the cause of the problem jeje
Forum: Scripting Help 05/12/2016, 04:18 PM
Replies: 7
Views: 445
Posted By Cerealguy
Problem show dialog!

BanCheck(playerid)
{
new
retrieveName[MAX_PLAYER_NAME],
retrieveBannedBy[MAX_PLAYER_NAME],
retrieveReason[50],
retrieveBanDate,
retrieveDuration,
retrieveGCPI[60],...
Forum: Scripting Help 04/12/2016, 04:36 PM
Replies: 8
Views: 390
Posted By Cerealguy
Forum: Scripting Help 02/12/2016, 05:47 AM
Replies: 8
Views: 390
Posted By Cerealguy
Showing results 1 to 25 of 290

 

All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.